nervure or Chart.js
Chart.js is the most used open source chart library: MIT, well documented, with a large set of plugins. It draws on a canvas, and its animations are finely set by property.
What differs
| nervure | Chart.js | |
|---|---|---|
| Types | 209 (230 charts and maps) | 8 core types, and community types |
| Marks | SVG you can style with CSS | canvas, styled by options |
| Maps, flows, diagrams | yes | plugins, or no |
| Export | menu, SVG, PNG, CSV, Markdown, Figma | PNG of the canvas |
| Long series | thinning for lines, canvas for dense scatter plots | decimation for lines |
| Size, everything | 173 kB gzipped for 199 types, 3D in a 15 kB file; 13 to 15 kB for one chart alone | 70 kB gzipped (4.6.2), less with tree shaking |
| Server rendering | SVG strings without a browser (nervure/render) | needs a canvas (node-canvas) |
| Mermaid text | read and drawn (nervure/mermaid) | no |
| Community | new | very large |
Moving
labels become categories, datasets become series:
ts
createChart(host, {
type: 'xy',
legend: true,
categories: config.data.labels,
series: config.data.datasets.map((d) => ({ name: d.label, kind: 'bar', data: d.data, color: d.backgroundColor })),
});All comparisons. Written from the documentation of Chart.js on 1 December 2026. Chart.js belongs to its owners, who have no part in this page.