Chart.js
Charts with the canvas tag.
- Active
- MIT
- JavaScript
- JavaScript charting libraries
- 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.
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
Development activity
Commits per month to the default branch over the last 12 complete months.
Show data as a table
| Month | Commits |
|---|---|
| Nov 2025 | 3 |
| Dec 2025 | 0 |
| Jan 2026 | 0 |
| Feb 2026 | 0 |
| Mar 2026 | 0 |
| Apr 2026 | 1 |
| May 2026 | 1 |
| Jun 2026 | 0 |
| Jul 2026 | 0 |
| Aug 2026 | 0 |
| Sep 2026 | 10 |
| Oct 2026 | 5 |
Popularity among JavaScript charting libraries
Show data as a table
| Tool | Stars |
|---|---|
| Chart.js | 67,803 |
| Apache ECharts | 67,746 |
| Plotly.js | 18,384 |
| ApexCharts | 15,192 |
| Frappe Charts | 15,102 |
| Chartist.js | 13,469 |
| G2 | 12,667 |
Alternatives to Chart.js
-
Apache ECharts
Highly customizable and interactive charts ready for big datasets.
-
Plotly.js
Powerful declarative library with support for 20 chart types.
-
ApexCharts
Modern & Interactive SVG Charts.
-
Frappe Charts
Simple, responsive SVG charts with zero dependencies.
-
Chartist.js
Responsive charts with great browser compatibility.
-
G2
An interactive and responsive charting library based on the grammar of graphics, maintained by Alibaba.
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?
Is Chart.js still maintained?
How do I install Chart.js?
npm install chart.js.What are the best alternatives to Chart.js?
What language is Chart.js written in?
Data: GitHub API, npm. Updated Nov 18, 2026.