Chart.js
Simple HTML5 canvas-based charting library for creating interactive data visualizations.
Charts and data visualisation npm MIT
Used in agent projects
165
1.3% of 12,697 public repos built with AI coding agents
Rank in charts and data visualisation
#3 of 16
by use in those projects
Downloads
12.7M
npm, last 7 days, chart.js
GitHub stars
67.7K
last push Oct 4, 2026
How Chart.js is used
Chart.js is a dependency in 165 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (1.3%), #3 of 16 in charts and data visualisation. The most used alternative there is Recharts. Projects that use it most often also use React Chart.js 2 (63.6%), Tailwind CSS (73.9%), React Router (29.7%). It is more common in projects set up for Junie (9.6%) than for Gemini CLI (1.1%).
Often used with Chart.js
| React Chart.js 2 | 63.6% of Chart.js projects · 72.8× more than average |
|---|---|
| Tailwind CSS | 73.9% of Chart.js projects · 2.1× more than average |
| React Router | 29.7% of Chart.js projects · 3.9× more than average |
| date-fns | 30.9% of Chart.js projects · 3.6× more than average |
| Axios | 33.3% of Chart.js projects · 3.3× more than average |
| React | 67.3% of Chart.js projects · 1.6× more than average |
| Framer Motion | 37.6% of Chart.js projects · 2.8× more than average |
| ESLint | 62.4% of Chart.js projects · 1.6× more than average |
By coding agent
| Claude Code | 1.5% of projects set up for it |
|---|---|
| Cursor | 2.0% of projects set up for it |
| GitHub Copilot | 1.4% of projects set up for it |
| OpenAI Codex | 2.0% of projects set up for it |
| OpenCode | 2.8% of projects set up for it |
| Junie | 9.6% of projects set up for it |
| Devin Desktop | 1.8% of projects set up for it |
| Gemini CLI | 1.1% of projects set up for it |
Share of public repos configured for each agent that list Chart.js as a dependency.
Install
| Package | npm install chart.js |
|---|---|
| Main stacks | TypeScript / JavaScript (84), Next.js (59), Python (10), PHP (10) |
| Example projects | LeagueAkari/LeagueAkari, David-Crty/databasement, 1600822305/AetherLink, hzrd149/nostrudel, Cap-go/capgo.app |
Alternatives to Chart.js
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| Recharts npm Composable React component library for building responsive charts. |
1,037 (8.2%) | 56.3M | 27.6K | MIT |
| Matplotlib pypi Python library for creating static, animated and interactive plots and visualizations. |
194 (1.5%) | 39.3M | 23.3K | — |
| React Chart.js 2 npm React components wrapper for Chart.js enabling data visualization with charts. |
111 (0.9%) | 4.4M | 6,937 | MIT |
| Plotly pypi Interactive data visualization library for Python with rich chart and dashboard support. |
74 (0.6%) | 12.5M | 18.8K | — |
| Seaborn pypi Statistical data visualization library built on matplotlib with rich plot types. |
66 (0.5%) | 6.8M | 14.1K | — |
| Mermaid npm Markdown-like syntax for creating flowcharts, diagrams, and visualizations programmatically. |
65 (0.5%) | 17.7M | 90.6K | MIT |
| D3.js npm JavaScript library for creating data-driven documents with powerful data visualization capabilities. |
63 (0.5%) | 22.2M | 114K | ISC |
| XY Flow npm Customizable React library for building interactive node-based editors and flow charts. |
62 (0.5%) | 13.4M | 38.6K | MIT |