plainJS

Libraries / UI

Chart.js

Simple HTML5 Charts using the <canvas> tag

BuildlessActive1 dependencyESM + script tagTypes bundledMIT

Facts

Facts fetched 2026-10-30 by the directory sync (GitHub, npm, jsDelivr, deps.dev). Nothing here is typed by hand.
Size205 KB minified, 69.3 KB gzipped (dist/chart.umd.min.js)
LicenceMIT
Dependencies@kurkle/color@^0.3.0
Last releasev4.6.1, October 2026
Last activity2026-10-23 (Active)
Stars67,766 on GitHub
FormatsES module; classic script (global Chart); TypeScript types in the package
CDN hits867.3 million a month on jsDelivr
npm downloads49.9 million a month
GatesG1 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.

htmlscript tag, with SRI
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/chart.umd.min.js"
        integrity="sha384-Emf5ZVIUiarAdhkgtqK+5/Z5qIvM6QoVrS+qAVtfyZVuD5lIHrac0me485+Antp0" crossorigin="anonymous"></script>
jsES module import
import Chart from "https://cdn.jsdelivr.net/npm/[email protected]/dist/chart.js";
Advertisement

Entry 5 in the directory. Facts refreshed monthly; last run 2026-10-30.