Elestia Open Source Ratings
7.4

Chart.js

A strong pick. 4th of 9 chart libraries.

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.

WebsiteGitHubnpm

Scores

Overall7.4

How strongly do we recommend it for a new project today?

Claude Opus 5.5: 7.0, likely 6.0 to 8.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, likely 6.6 to 8.8

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 many6.1

How many developers need a tool for this job?

Claude Opus 5.5: 7.0, likely 6.0 to 8.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, likely 4.0 to 6.4

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 lot7.3

How well does it do the job for those who need it?

Claude Opus 5.5: 6.5, likely 5.5 to 7.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, likely 7.0 to 9.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 time6.1

Will it still be a good choice in two years?

Claude Opus 5.5: 6.0, likely 4.5 to 7.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, likely 4.8 to 7.5

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 widely7.5

How many use it, and is that growing?

Claude Opus 5.5: 8.0, likely 7.0 to 9.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.

  • npm downloadsLast4Weeks: 67.9M, up from 22.7M a year ago (ratio about 3.0, below the 4.1 median)
  • dependents.repos: 192,834, more than twice D3's 86k
  • apexcharts.com/blog/state-of-javascript-charting-2026: Called the most-used charting library that people install on purpose

GPT-6.2 Sol: 7.0, likely 5.9 to 8.2

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.

  • dependents, github stars, and peers dependentRepos: 192,834 indexed repositories, 3,446 dependent packages, and 67,816 stars.
  • npm downloadsLast4Weeks, npm downloadsSame4WeeksYearAgo, and medianDownloadsRatio: Chart.js grew 2.99× against a 4.1× catalog median.
  • peers downloadsLast4Weeks and downloadsSame4WeeksYearAgo: Recharts grew 7.54×, D3 5.99×, and ECharts 6.89×.
  • 2025.stateofjs.com/en-US/other-tools: 3,045 reported regular use after Chart.js became a listed option.
  • npmjs.com/package/react-chartjs-2?activeTab=code: A widely used React wrapper declares Chart.js as a peer dependency.
  • chartjs.org/docs/latest/getting-started/installation: CDNJS and jsDelivr offer installation paths outside npm.
Vouched for7.3

Who stands behind it being good?

Claude Opus 5.5: 6.5, likely 5.0 to 7.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, likely 6.8 to 9.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.

Safe7.3

How safe is it to depend on?

Claude Opus 5.5: 7.5, likely 6.5 to 8.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.

  • advisories: 1 total (2021, HIGH, fixed); 0 in the last 24 months
  • scorecard: 5.9; Security-Policy, Pinned-Dependencies, Signed-Releases and SAST all score 0
  • npm dependencies: 1 dependency
  • github.com/chartjs/Chart.js/releases: v4.6.1 fixed trusted publishing

GPT-6.2 Sol: 7.1, likely 5.8 to 8.3

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

npm downloads, 4 weeks
68M ×3.0 in a year
GitHub stars
68k
Commits, 12 months
21
npm version
4.6.1 Oct 2026
Versions, 12 months
1
Advisories, 24 months
0 of 1 ever
OpenSSF Scorecard
5.9 out of 10, Nov 2026
Licence
MIT

Read on 21 November 2026 from GitHub (chartjs/Chart.js), npm (chart.js), OSV and the OpenSSF Scorecard.

Chart libraries

  1. 8.3Apache ECharts
  2. 8.1Recharts
  3. 7.8D3
  4. 7.4Chart.js
  5. 7.2Plotly.js
  6. 6.9Observable Plot
  7. 6.3visx
  8. 5.8Victory
  9. 5.4Nivo
Compare all 9 on six scores