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
| nervure | Recharts | |
|---|---|---|
| Frameworks | React, Vue, Svelte, Angular, plain HTML, Symfony, Laravel | React only |
| How you describe a chart | one object (a spec), serialisable to JSON | nested React components |
| Types | 209 (230 charts and maps) | the common ones: lines, bars, areas, pies, radar, scatter, treemap, funnel, Sankey |
| Maps, Gantt, flowcharts | yes | no |
| Runtime dependencies | none | about ten |
| Export | SVG, PNG, CSV, Markdown, Figma | your code |
| Server rendering | SVG strings without a browser | React server rendering |
| AI assistants | MCP server and specs written as JSON | no |
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.