Chart.js vs D3.js
Charting and visualization package requirements, types, measured build size, and dependency graphs.
| Specification | chart.js 4.6.1 | d3 7.9.0 |
|---|---|---|
| Latest version | 4.6.1 | 7.9.0 |
| License | MIT | ISC |
| Runtime dependencies | 1 | 30 |
| Peer requirements | None declared | None declared |
| Node.js requirement | Not declared | >=12 |
| Type declarations | Bundled declarations | Not declared |
| Gzip size | 67.99 KiB | 89.85 KiB |
| Unpacked size | 6081.96 KiB | 850.86 KiB |
| Published files | 117 | 6 |
| Direct advisories | 0 | 0 |
How to use this comparison
Choose according to your required APIs, runtime, integration constraints, and license terms. A smaller provider bundle or higher download count does not establish the best choice. Measurements use the same provider scenario; application imports and peer dependencies can change the outcome.
Check each exact release
- chart.js@4.6.1 — chart.js@4.6.1 was published on 2026-10-22. Its manifest declares 1 runtime dependency and 0 peer requirements. Type declarations are bundled according to the package metadata. No Node.js engine requirement is declared in this manifest.
- d3@7.9.0 — d3@7.9.0 was published on 2024-03-12. Its manifest declares 30 runtime dependencies and 0 peer requirements. Bundled type declarations are not declared in the inspected metadata. The declared Node.js requirement is >=12.
Evidence and freshness
- https://registry.npmjs.org/chart.js/4.6.1 — retrieved 2026-10-28T23:51:59.282Z (stale snapshot; refresh pending)
- https://api.deps.dev/v3/systems/npm/packages/chart.js/versions/4.6.1:dependencies — retrieved 2026-10-28T23:30:10.725Z
- https://bundlephobia.com/api/size?package=chart.js%404.6.1 — retrieved 2026-10-28T23:30:10.803Z
- https://api.deps.dev/v3/systems/npm/packages/chart.js/versions/4.6.1 — retrieved 2026-10-28T23:51:59.389Z (stale snapshot; refresh pending)
- https://api.deps.dev/v3/projects/github.com%2Fchartjs%2FChart.js — retrieved 2026-10-28T23:01:28.772Z (stale snapshot; refresh pending)
Evidence and freshness
- https://registry.npmjs.org/d3/7.9.0 — retrieved 2026-10-28T23:51:59.389Z (stale snapshot; refresh pending)
- https://bundlephobia.com/api/size?package=d3%407.9.0 — retrieved 2026-10-28T23:30:11.205Z
- https://api.deps.dev/v3/systems/npm/packages/d3/versions/7.9.0:dependencies — retrieved 2026-10-28T23:30:11.115Z
- https://api.deps.dev/v3/systems/npm/packages/d3/versions/7.9.0 — retrieved 2026-10-28T23:51:59.520Z (stale snapshot; refresh pending)
- https://api.deps.dev/v3/projects/github.com%2Fd3%2Fd3 — retrieved 2026-10-28T23:01:28.954Z (stale snapshot; refresh pending)