# Chart.js vs D3.js

## 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.

| | Chart.js | D3.js |
|---|---|---|
| Description | Charts with the canvas tag. | JavaScript library for producing dynamic, data-driven visualizations with SVG, Canvas and HTML. |
| GitHub stars | 67,733 | 113,802 |
| Commits (12 months) | 21 | 2 |
| Contributors | 426 | 136 |
| License | MIT | ISC |
| Language | JavaScript | JavaScript |
| Status | Active | Maintained |
| Install | `npm install chart.js` | `npm install d3` |

Source: https://awesomedataviz.com/compare/chart-js-vs-d3/ · Data updated 2026-10-04 · Content: CC BY 4.0, Awesome Dataviz (https://awesomedataviz.com).
