Chart.js
Simple HTML5 Charts using the <canvas> tag
BuildlessActive1 dependencyESM + script tagTypes bundledMIT
Facts
| Size | 205 KB minified, 69.3 KB gzipped (dist/chart.umd.min.js) |
|---|---|
| Licence | MIT |
| Dependencies | @kurkle/color@^0.3.0 |
| Last release | v4.6.1, October 2026 |
| Last activity | 2026-10-23 (Active) |
| Stars | 67,766 on GitHub |
| Formats | ES module; classic script (global Chart); TypeScript types in the package |
| CDN hits | 867.3 million a month on jsDelivr |
| npm downloads | 49.9 million a month |
| Gates | G1 failed (no runtime dependencies); G2 passed (loads in a browser as it is); G3 passed (no compile-only entry points); G4 passed (open-source licence); G5 passed (not archived or deprecated). Smoke test on v4.6.1 in headless Chromium, 2026-10-30 |
Load it
Pin the version. The hash is computed from the file jsDelivr serves, so a changed file fails to load instead of running.
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/chart.umd.min.js"
integrity="sha384-Emf5ZVIUiarAdhkgtqK+5/Z5qIvM6QoVrS+qAVtfyZVuD5lIHrac0me485+Antp0" crossorigin="anonymous"></script>import Chart from "https://cdn.jsdelivr.net/npm/[email protected]/dist/chart.js";Advertisement
Related libraries
- Notus – Web Notifications Widget Yet another JavaScript pop-up notification library for the web.
- Speckle.js A JavaScript plugin that adds responsive, stylized speckles to any element; with no dependencies.
- Roar A zero-dependency, vanilla JavaScript alert/confirm replacement.
Entry 5 in the directory. Facts refreshed monthly; last run 2026-10-30.