# Chart.js: 7.4 out of 10

A strong pick. 4th of 9 in [Chart libraries](https://elestia.ai/opensource/charts/index.md).

Chart.js is a canvas chart library that works with any framework. It is easy to use and covers the common chart types. It is still a sound, lightweight pick for standard dashboards, but development has slowed, and its downloads grow more slowly than most peers'.

**Best for:** Teams that want common charts quickly, in any framework or plain HTML, with a small bundle.

## Scores

- **Overall: 7.4** (likely 6.3 to 8.4)
  - Claude Opus 5.5 (7.0): Chart.js is still a strong, low-risk pick for standard charts in any framework. It is small, stable, well documented and very widely used. Slow development, canvas accessibility limits and below-median growth keep it under ECharts for complex or large-data work, and under Recharts for React-first teams. The range is moderate because evidence on quality mostly comes from vendor-written comparisons.
  - GPT-6.2 Sol (7.7): Chart.js remains a strong first choice for standard Canvas dashboards because setup is straightforward, rendering is competitive, and established products depend on it. Apache ECharts is the stronger fit for dashboards that need a wider range of chart types and built-in interactions. The sparse release cadence and below-median download growth limit confidence in its standing over the next two years.
- **Needed by many: 6.1** (likely 5.0 to 7.2)
  - Claude Opus 5.5 (7.0): Many web apps need charts on dashboards and admin pages. Because Chart.js does not depend on a framework, it serves React, Vue, Svelte and plain HTML users alike. It is not needed in most projects, so it scores below 8.
  - GPT-6.2 Sol (5.2): Chart.js covers common reporting and dashboard charts in plain JavaScript and across frontend frameworks. Data visualization was a minority use case in State of JavaScript 2025. The survey question leaves room for occasional charting by developers who primarily build other things.
- **Helps a lot: 7.3** (likely 6.3 to 8.3)
  - Claude Opus 5.5 (6.5): It is easy to use, ships TypeScript types, has good docs and a small modular bundle, and canvas keeps it fast at moderate data sizes. Its limits are canvas accessibility, recurring resize bugs, slowdowns with very large datasets, and fewer chart types than ECharts. React teams often get a more natural API from Recharts.
  - GPT-6.2 Sol (8.1): Version 4.6.1 has bundled types, clear examples, and a simple automatic import. Selective imports require explicit registration, a documented stumbling point that also matters for generated code. A recent independent test put Chart.js close to ECharts and ahead of Recharts on a 10,000-point scatter plot, though results depend on the workload. Accessible Canvas output takes application work, and users who switched to ECharts report needing less custom code for richer charts.
- **Holds up over time: 6.1** (likely 4.7 to 7.3)
  - Claude Opus 5.5 (6.0): The project is active but slow: 21 commits and 2 release cycles in the last year, with 502 open issues and 137 open pull requests. A small volunteer team does the work, with no clear funding. The v4 API has been stable for years and there is no breaking v5 in sight. That makes it safe for existing code, but it is far behind peers like Recharts and ECharts in activity.
  - GPT-6.2 Sol (6.1): The project still merges fixes and shipped 4.6.1 in October, with contributions from several people. It recorded 21 commits and one npm publication in a year, far behind Recharts and ECharts on commit activity. A maintainer reported limited time and no fixed release schedule, and the two October GitHub releases represent one successful npm publication. Funding and the number of people who can independently ship a release remain unclear.
- **Used widely: 7.5** (likely 6.5 to 8.6)
  - Claude Opus 5.5 (8.0): It has 68M downloads in 4 weeks and 192k dependent repos, the most of any peer. Few of those downloads are pulled in by other tools, so most are direct choices. But its year-over-year ratio of about 3.0 is below the 4.1 median and below Recharts, ECharts, D3, visx and Observable Plot, so it is losing share of new projects.
  - GPT-6.2 Sol (7.0): About 193,000 indexed repositories depend on Chart.js, the largest reported count in this peer set. Four-week npm downloads rose from 22.7 million to 67.9 million, about 2.99× against the 4.1× catalog median, indicating a loss of relative ground. Recharts, D3, and ECharts grew faster on the same measure. CI and wrapper installs inflate download counts, while CDN usage goes uncounted, so the pace of new direct choices is uncertain.
- **Vouched for: 7.3** (likely 5.9 to 8.3)
  - Claude Opus 5.5 (6.5): It appears as a top or default pick in many independent comparisons, and secondary coverage reports it ranked high in State of JS 2025. Most write-ups come from competing vendors, and no large company publicly stands behind it. Its long production record across many codebases still counts for something.
  - GPT-6.2 Sol (8.0): Moodle ships a customized Chart.js 4.5.1, and QuickChart builds its rendering service on Chart.js with support for v4. Recent tests from an independent developer and a competing library both found competitive scatter rendering. Those tests covered specific workloads and earlier builds, and the survey measures regular use without a satisfaction or retention rating.
- **Safe: 7.3** (likely 6.2 to 8.4)
  - Claude Opus 5.5 (7.5): Only one advisory exists, a prototype pollution bug from 2021 that was fixed, and none in the last 24 months. It has one dependency (@kurkle/color), an MIT licence, and releases now go through trusted publishing. The Scorecard is 5.9, with no security policy, no pinned dependencies, no signed releases and no SAST.
  - GPT-6.2 Sol (7.1): Chart.js has one direct runtime dependency, an MIT license, and npm trusted publishing for 4.6.1. The older high-severity advisory was fixed in 2.9.4, and the supplied database lists zero advisories in the past two years. A separate report about untrusted input reaching chart defaults remains open, with its effect on 4.6.1 unverified. The 5.9 Scorecard gives full marks for code review and token permissions, with gaps in security policy, dependency pinning, and release signing.

## Good

- A simple config-object API covers line, bar, pie, radar and mixed charts, with sensible defaults.
- It works with any framework, and React, Vue and Angular wrappers are widely used.
- It has a large plugin ecosystem, such as zoom, annotation and datalabels, and tree-shakable imports keep the bundle small.
- It is very widely used, so AI agents and Stack Overflow have many working examples.

## Bad

- Canvas drawing makes charts harder to make accessible and to style per element than with SVG libraries.
- Users report resizing and shrinking bugs that keep coming back, and slow rendering with very large or live-updating datasets.
- Development is slow: 21 commits and 2 releases in the last year, with about 500 open issues.
- It has fewer chart types than ECharts or Plotly, and custom visuals need plugins or raw canvas code.

## The numbers

- Downloads, 4 weeks: 68M
- In a year: ×3.0
- GitHub stars: 68k
- Commits, 12 months: 21
- Last npm release: Oct 2026
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/chartjs/Chart.js
- npm: https://www.npmjs.com/package/chart.js

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 21 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
