Key differences

  • D3.js has 1.7× as many GitHub stars as Chart.js (114K vs 67.8K).
  • Chart.js had more development activity over the last 12 months: 20 commits vs 3.
  • D3.js is downloaded 2× as often on npm (34.1M vs 17M per week).
  • Chart.js is licensed under MIT; D3.js under ISC.
  • D3.js is the older project: its repository was created in 2010, Chart.js's in 2013.

By the numbers

  • Chart.js
  • D3.js
GitHub stars
67.8K 114K
npm downloads / week
17M 34.1M
Commits, last 12 months
20 3
Contributors
426 136
Forks
12K 22.7K
Show data as a table
Chart.js vs D3.js by the numbers
MetricChart.jsD3.js
GitHub stars67,803113,957
npm downloads / week16,950,77534,138,227
Commits, last 12 months203
Contributors426136
Forks11,97222,713

Development activity

Commits per month to each default branch, last 12 complete months.

  • Chart.js
  • D3.js
0510 Nov 2025 Dec Jan 2026 Feb Mar Apr May Jun Jul Aug Sep OctChart.jsD3.js
0510 Nov 2025 Feb 2026 May Aug Chart.jsD3.js
Show data as a table
Chart.js vs D3.js: commits per month
MonthChart.jsD3.js
Nov 202530
Dec 202501
Jan 202600
Feb 202600
Mar 202600
Apr 202610
May 202611
Jun 202600
Jul 202600
Aug 202600
Sep 2026100
Oct 202651

Side by side

AttributeChart.jsD3.js
DescriptionCharts with the canvas tag.JavaScript library for producing dynamic, data-driven visualizations with SVG, Canvas and HTML.
CategoryJavaScript charting librariesD3.js
LicenseMITISC
LanguageJavaScriptJavaScript
StatusActiveActive
Latest releasev4.6.1 ()v7.9.2 ()
Last commit
Repository created
Open issues5035
Install
npm install chart.js
npm install d3

Which should you choose?

Popularity and activity are only part of the story. Consider which ecosystem you work in, the chart types and interactions you need, how much data you render, and whether the license fits your project. Both tool pages list alternatives if neither is quite right.

  • Chart.js

    Charts with the canvas tag.

    67.8K starsJavaScriptMIT

  • D3.js

    JavaScript library for producing dynamic, data-driven visualizations with SVG, Canvas and HTML.

    114K starsJavaScriptISC

More comparisons