Recharts vs Chart.js
In 4,864 JavaScript/TypeScript projects set up for AI coding agents, Recharts is a dependency in 576 (11.8%) and Chart.js in 87 (1.8%): Recharts is 6.6× as common. Among repos created in the last 90 days that use a charts and data visualisation tool, Recharts is in 60.7% and Chart.js in 14.3%, against 69.1% and 10.3% of older ones. 25 projects list both, often a sign of a migration or of a monorepo with several apps.
Charts and data visualisation npm Updated Nov 17, 2026
Side by side
| Recharts | Chart.js | |
|---|---|---|
| Agent projects that use it | 576 | 87 |
| Rank in charts and data visualisation | #1 | #3 |
| In new repos with a charts and data visualisation tool (last 90 days) | 60.7% | 14.3% |
| In older repos with one | 69.1% | 10.3% |
| Downloads, last 7 days | 66.9M | 16.6M |
| GitHub stars | 27.7K | 67.8K |
| Last push to its repo | Nov 16, 2026 | Nov 9, 2026 |
| License | MIT | MIT |
| Funding | Yes | — |
| Projects that list both | 25 | |
Downloads include CI runs and installs as a dependency of other packages. Stars and pushes are from GitHub's API; downloads from npm.
By coding agent
| Projects set up for | JavaScript/TypeScript repos | Recharts | Chart.js |
|---|---|---|---|
| Claude Code | 2,617 | 11.8% | 1.8% |
| GitHub Copilot | 2,350 | 11.3% | 1.8% |
| Cursor | 1,990 | 15.4% | 2.3% |
| Gemini CLI | 422 | 11.1% | 1.4% |
| OpenAI Codex | 409 | 10.0% | 2.0% |
| OpenCode | 304 | 7.2% | 3.9% |
| OpenClaw | 241 | 6.2% | 0% |
| Devin Desktop | 231 | 22.5% | 2.2% |
| Kiro | 125 | 15.2% | 0% |
| Roo-Code | 90 | 24.4% | 0% |
Share of the JavaScript/TypeScript repos configured for each agent (its config file in the repo) that list the tool. A repo set up for two agents counts for both.
Recharts
Composable React component library for building responsive charts.
Most often used with it:
| Lucide React | 92.7% of its projects |
|---|---|
| clsx | 86.5% of its projects |
| Tailwind Merge | 85.4% of its projects |
| Class Variance Authority | 79.7% of its projects |
| React | 99.0% of its projects |
npm install recharts
Chart.js
Simple HTML5 canvas-based charting library for creating interactive data visualizations.
Most often used with it:
| Tailwind CSS | 81.6% of its projects |
|---|---|
| React Chart.js 2 | 46.0% of its projects |
| Vite | 56.3% of its projects |
| TypeScript | 80.5% of its projects |
| ESLint | 65.5% of its projects |
npm install chart.js
More matchups
How we count
Projects are public GitHub repos our weekly scan finds through coding-agent config files (CLAUDE.md, AGENTS.md, .cursor/mcp.json and others); a project uses a tool when its package.json, requirements.txt or pyproject.toml lists it. "Same job" was checked for every pair, so add-ons and companions are never paired. Shares by repo age compare repos created in the last 90 days with older ones in the same scan. More on the method.