GitHub stars
67.8K#5 in the directory
npm downloads / week
17M
Commits, last 12 months
20
Contributors
426
Last commit
Latest release
v4.6.1Oct 22, 2026

Overview

Chart.js is an open-source JavaScript charting library released under the MIT license. Its GitHub repository has 67,803 stars, 11,972 forks, and 426 contributors. It is actively developed with 20 commits in the last 12 months. The latest release, v4.6.1, was published on Oct 22, 2026. On npm it is downloaded about 17M times per week.

Its GitHub description: Simple HTML5 Charts using the <canvas> tag

GitHub topics: javascriptcharthtml5canvasgraphhtml5-charts

Try it live

This demo of Chart.js draws the same Gapminder dataset (life expectancy, GDP per capita and population for 142 countries, 1952–2007) in the same three views as the other libraries’ demos, so you can compare them side by side; it runs on Cloudish and may take a few seconds to wake up.

Screenshot of the Chart.js demo

Views: GDP per capita vs life expectancy by year, life expectancy over time for one country, and a world map of one metric for one year. Core Chart.js has no maps; the map uses the chartjs-chart-geo plugin.

The same demo in other libraries: Apache ECharts · Plotly.js · Matplotlib · Shiny for R · Streamlit. See them all side by side.

Install

npm
npm install chart.js
v4.6.1

Development activity

Commits per month to the default branch over the last 12 complete months.

0510 Nov 2025 Dec Jan 2026 Feb Mar Apr May Jun Jul Aug Sep Oct
0510 Nov 2025 Feb 2026 May Aug
20 commits from Nov 2025 to Oct 2026.
Show data as a table
Chart.js commits per month
MonthCommits
Nov 20253
Dec 20250
Jan 20260
Feb 20260
Mar 20260
Apr 20261
May 20261
Jun 20260
Jul 20260
Aug 20260
Sep 202610
Oct 20265

Popularity among JavaScript charting libraries

GitHub stars for Chart.js and the most-starred alternatives.
Show data as a table
GitHub stars
ToolStars
Chart.js67,803
Apache ECharts67,746
Plotly.js18,384
ApexCharts15,192
Frappe Charts15,102
Chartist.js13,469
G212,667

Alternatives to Chart.js

More comparisons: Chart.js vs Apache ECharts · Chart.js vs Plotly.js · ApexCharts vs Chart.js · Chart.js vs Frappe Charts · Chart.js vs D3.js · Chart.js vs Recharts · Chart.js vs uPlot · Chart.js vs Lightweight Charts

Chart.js FAQ

Is Chart.js open source?

Yes. Chart.js is released under the MIT license, and its source code is on GitHub.

Is Chart.js still maintained?

Yes. Chart.js is actively developed, with 20 commits in the last 12 months and the latest commit yesterday.

How do I install Chart.js?

From npm: npm install chart.js.

What are the best alternatives to Chart.js?

The most popular alternatives listed in JavaScript charting libraries are Apache ECharts, Plotly.js, and ApexCharts. See the full ranking.

What language is Chart.js written in?

Chart.js is primarily written in JavaScript, according to GitHub.

Data: GitHub API, npm. Updated Nov 18, 2026.