Find your next open-source project

Search by name, purpose, or keyword, or paste a GitHub URL. Start with / to search agent skills (e.g. /pdf)

chartjs/Chart.js

Developer Tools

A JavaScript charting library that renders responsive, animated charts on HTML5 canvas for web developers and designers.

67,859
11,977
JavaScript
MIT
13 years old

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:

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

Chart.js 2.9
▲ 48 · 2 comments · October 26, 2019
Chart.js v3 Released
▲ 3 · 0 comments · April 2, 2021
Chart.js 3.0 Released
▲ 2 · 0 comments · April 2, 2021

You might also like

  1. 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.TypeScript116
  2. mrdoob/three.jsGeneral-purpose 3D rendering library for browser-based graphics, from product viewers to generative art, without a game engine.JavaScript116,873
  3. krispuckett/roundsA local canvas that collects screens, pages and file changes from every Claude Code session and lets you leave feedback notes.TypeScript103
  4. helm/helmPackage, version and release Kubernetes applications as charts so the same app can be installed reproducibly on many clusters.Go30,367
  5. juliangarnier/animeA small JavaScript library for animating CSS, SVG, DOM attributes and plain objects in web interfaces and browser-based visuals.JavaScript73,924