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.
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.
- peers: Recharts, ECharts and D3 are growing faster and are more active
- tanstack.com/charts/latest/docs/comparison: Suits standard canvas charts with plugins
- github commitsLastYear: Slow development
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.
- chartjs.org/docs/latest/getting-started/usage: Straightforward setup with documented customization and plugins.
- dev.to/gusevp/six-react-chart-libraries-against-hand-written-svg-what-i-found-46ib: Competitive rendering in a current third-party comparison.
- moodledev.io/general/community/credits/thirdpartylibs: Established production integration in Moodle.
- echarts.apache.org/en/feature.html: ECharts offers broader chart types and built-in interactions.
- github.com/chartjs/Chart.js/discussions/12353: Maintainers have limited time and no fixed release cadence.
- npm downloadsLast4Weeks, npm downloadsSame4WeeksYearAgo, and medianDownloadsRatio: Year-over-year download growth trails the catalog baseline.
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.
- apexcharts.com/blog/state-of-javascript-charting-2026: Framework-agnostic; the default library for 'just give me a chart'
- dependents: 192,834 repos depend on it, the most in the category
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.
- 2025.stateofjs.com/en-US/usage: 1,795 respondents selected data visualization as a JavaScript use case.
- chartjs.org/docs/latest/getting-started/integration: Supports plain scripts, bundlers, and frontend framework integrations.
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.
- tanstack.com/charts/latest/docs/comparison: Smallest gzip footprint of the three, about 45–58 KiB; canvas-first with a plugin ecosystem
- dev.to/andyb1979/alternatives-to-chartjs-a-series-exploring-javascript-chart-comparisons-4cb0: GitHub issues about slow rendering and zooming
- bluesky top posts: Users report the chart-shrinking resize bug and per-point animation overhead
- npm hasTypes: Ships its own types
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.
- npm latestVersion and hasTypes: Stable version 4.6.1 ships TypeScript declarations.
- chartjs.org/docs/latest/getting-started/usage: Walks through chart setup, plugins, and selective imports.
- react-chartjs-2.js.org/faq/registered-scale: Documents the error caused by a missing scale registration.
- dev.to/gusevp/six-react-chart-libraries-against-hand-written-svg-what-i-found-46ib: Chart.js mounted a 10,000-point scatter in 80 ms on one test machine.
- chartjs.org/docs/latest/general/accessibility.html: Canvas accessibility requires application-provided markup.
- reddit.com/r/vuejs/comments/1mjaix1/chart_library_chartjs_or_apache_echarts: Users who switched describe more built-in features in ECharts.
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.
- github commitsLastYear: 21 commits, against 1,089 for Recharts and 225 for ECharts
- github.com/chartjs/Chart.js/releases: v4.5.1 and v4.6.0/4.6.1 are mostly fixes; no v5 roadmap
- pkgpulse.com/compare/chart.js-vs-recharts: Maintenance scored 40/100, against 100 for Recharts
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.
- github commitsLastYear and npm versionsLastYear: 21 commits and one npm publication in the past year.
- peers commitsLastYear: Recharts recorded 1,089 commits and ECharts recorded 225.
- github.com/chartjs/Chart.js/discussions/12353: A maintainer explains the irregular cadence and failed 4.6.0 publish.
- github.com/chartjs/Chart.js/releases/tag/v4.6.0: Multiple contributors shipped chart fixes, type fixes, and documentation.
- github.com/chartjs/Chart.js/releases/tag/v4.6.1: October patch restored npm publishing.
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.
- strapi.io/blog/chart-libraries: Reports Chart.js first in State of JS 2025 graphics usage (not verified against the survey)
- blog.logrocket.com/tanstack-charts-vs-recharts-vs-chart-js: Independent comparison that names it a main option
- lightningchart.com/blog/best-chart-js-alternatives-in-2026: Vendor piece that treats it as the baseline to beat; notes limits at scale
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.
- moodledev.io/general/community/credits/thirdpartylibs: Moodle bundles a customized Chart.js 4.5.1.
- quickchart.io/documentation/faq: QuickChart runs Chart.js in its rendering service and supports v4.
- dev.to/gusevp/six-react-chart-libraries-against-hand-written-svg-what-i-found-46ib: Independent comparison found competitive scatter rendering across React integrations.
- apexcharts.com/blog/javascript-chart-library-benchmark: Competitor benchmark put Chart.js 4.5.1 first for 50,000-point scatter.
- 2025.stateofjs.com/en-US/other-tools: Survey records regular use for graphics tools.
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.
- npm dependencies and license: One direct dependency and a permissive MIT license.
- advisories last24Months and scorecard checks: Zero recent advisories and mixed supply-chain controls.
- github.com/advisories/GHSA-h68q-55jf-x68w: The older advisory identifies 2.9.4 as the patched version.
- github.com/chartjs/Chart.js/issues/12265: Separate chart-defaults report remains open and names 4.5.1 as tested.
- github.com/chartjs/Chart.js/releases/tag/v4.6.1: October release records the trusted publishing fix.
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.