Skip to content

nervure or Recharts ​

Recharts builds charts out of React components (<LineChart>, <XAxis>, <Line>). It is MIT, draws in SVG and is very popular in React projects. It only works with React and depends on several packages (Redux toolkit, Immer, Reselect in version 3).

What differs ​

nervureRecharts
FrameworksReact, Vue, Svelte, Angular, plain HTML, Symfony, LaravelReact only
How you describe a chartone object (a spec), serialisable to JSONnested React components
Types209 (230 charts and maps)the common ones: lines, bars, areas, pies, radar, scatter, treemap, funnel, Sankey
Maps, Gantt, flowchartsyesno
Runtime dependenciesnoneabout ten
ExportSVG, PNG, CSV, Markdown, Figmayour code
Server renderingSVG strings without a browserReact server rendering
AI assistantsMCP server and specs written as JSONno

Choose Recharts when ​

  • your team prefers composing charts from JSX components;
  • you only build for React and already use its ecosystem.

Choose nervure when ​

  • the same charts must run in several frameworks, or in PHP templates;
  • you want a spec you can store, send from a server, or have an assistant write;
  • you need maps, diagrams or exports without extra packages.

Moving ​

tsx
// Recharts
<LineChart data={rows}><XAxis dataKey="month" /><Line dataKey="sales" /></LineChart>
// nervure
<Chart spec={{ type: 'xy', categories: rows.map(r => r.month), series: [{ name: 'Sales', data: rows.map(r => r.sales) }] }} />

All comparisons. Written from the documentation of Recharts on 2 December 2026. Recharts belongs to its owners, who have no part in this page.