Key differences

  • D3.js has 1.7× as many GitHub stars as Chart.js (113.8K vs 67.7K).
  • Chart.js had more development activity over the last 12 months: 21 commits vs 2.
  • D3.js is downloaded 1.6× as often on npm (25.7M vs 15.7M 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.7K 113.8K
npm downloads / week
15.7M 25.7M
Commits, last 12 months
21 2
Contributors
426 136
Forks
11.9K 22.6K
Show data as a table
Chart.js vs D3.js by the numbers
MetricChart.jsD3.js
GitHub stars67,733113,802
npm downloads / week15,670,89525,739,179
Commits, last 12 months212
Contributors426136
Forks11,94722,637

Development activity

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

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

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
StatusActiveMaintained
Latest releasev4.5.1 ()v7.9.0 ()
Last commit
Repository created
Open issues4995
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.7K starsJavaScriptMIT

  • D3.js

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

    113.8K starsJavaScriptISC

More comparisons