GitHub

Best JavaScript chart libraries

Libraries for drawing charts and data visualizations on the web. recharts leads with about 63.7M real installs a week, followed by d3 with about 32.4M.

packagereal installs / weeknpm / weeknoiselast releaseconfidence
1. rechartsReact charts 63.6M–63.7M 63,660,054 under 1% Jul 2026 high
2. d3Data-Driven Documents 32.3M–32.4M 32,351,225 under 1% Nov 2026 high
3. chart.jsSimple HTML5 charts using the canvas element. 16.8M–16.9M 16,857,710 under 1% Oct 2026 high
4. echartsApache ECharts is a powerful, interactive charting and data visualization library for browser 9.88M 9,884,033 under 1% May 2026 high
5. highchartsJavaScript charting framework 3.53M–3.54M 3,535,331 under 1% Sep 2026 high
6. apexchartsA JavaScript Chart Library 2.77M–2.78M 2,778,088 under 1% Oct 2026 high
7. @nivo/core 2.01M 2,009,717 under 1% May 2025 high
8. plotly.jsThe open source javascript graphing library that powers plotly 962K–964K 963,882 under 1% Oct 2026 high

Ranked by real installs. That measures use, not quality: read the notes below before choosing. Mirror spikes and crawlers removed. CI and dependency installs still count, so this is not a head count. Noise: the share of npm's count that mirror spikes and crawlers account for. What remains still includes CI and dependency installs. Rows are refreshed in rotation, the oldest here on Nov 6, 2026.

How do they differ?

Chart.js is a simple way to get common charts on a canvas. Recharts and Nivo are made for React. D3 is low level, so you build the chart yourself. ECharts and Plotly handle large or scientific data sets. Check the license on Highcharts, which requires a paid one for most commercial use.

Check a package