chartjs/Chart.js
Developer ToolsA JavaScript charting library that renders responsive, animated charts on HTML5 canvas for web developers and designers.
What it does
Chart.js is a JavaScript charting library that draws charts into an HTML5 <canvas> element. It targets web developers and designers who need line, bar, and other standard chart types in a page without building a rendering layer themselves. Charts are configured through a declarative options object covering data structures, configuration, chart types, and axes, and the library ships with a set of runnable samples.
Getting started
The website provides versioned documentation and an installation guide. The supported entry points are:
- Getting Started for installation and first-chart setup.
- Data structures and configuration for the options object shape.
- Line charts and axes for chart- and scale-specific options.
- Samples for working examples you can open in a browser.
Follow the installation page for the current version's script or package setup, then define datasets and a config object and pass a canvas context to the chart constructor. The exact command depends on how you load the library (script tag or package manager), so take it from the installation guide rather than from this summary.
Constraints
- Rendering relies on the HTML5
<canvas>element, so the target environment must support it. - Documentation links point to version 4 of the library; older documentation requires a version-specific URL such as the 2.9.4 docs.
- The time scale has historically contributed significant bundle size through date libraries. In a 2019 discussion, a maintainer noted that date libraries are only needed when using the time scale, with date-fns and luxon offered as lighter alternatives to moment discussion.
- Licensed under MIT license.
HotRepo's take
Chart.js is a long-running project (created in 2013) with a large installed base: roughly 67.9k stars and 12.0k forks. In the JavaScript weekly snapshot dated 2026-12-04 it gained 46 stars and reached best position 2 on that language list. HN discussion is sparse and old: the 2.9 release thread drew 48 points, and the 3.0 release threads drew only 2–3 points, so discussion volume there says little about current adoption. The more telling signal is the bundle-size point raised in the 2.9 thread, which the maintainers answered directly — relevant if your page relies on the time scale.
Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.
Hacker News
You might also like
- Junhan2/ztd-chartsA React SVG chart library with 36 animated, accessible chart types, a JSON spec format, CLI and MCP server for AI-assisted charting.
- mrdoob/three.jsGeneral-purpose 3D rendering library for browser-based graphics, from product viewers to generative art, without a game engine.
- krispuckett/roundsA local canvas that collects screens, pages and file changes from every Claude Code session and lets you leave feedback notes.
- helm/helmPackage, version and release Kubernetes applications as charts so the same app can be installed reproducibly on many clusters.
- juliangarnier/animeA small JavaScript library for animating CSS, SVG, DOM attributes and plain objects in web interfaces and browser-based visuals.