# reactchartjs/react-chartjs-2

React components for Chart.js, the most popular charting library

Repository: https://github.com/reactchartjs/react-chartjs-2
Canonical: https://ross.abutalabs.com/products/react-chartjs-2
Homepage: https://react-chartjs-2.js.org
Language: TypeScript
License: MIT
License Family: permissive
Topics: react, reactjs, chart, chartjs, chartjs-2, charts, charting-library, data-visualization, datavisualization, datavis, dataviz-tools, visualization
Last push: 2026-08-26T12:57:44+00:00

## Health v2 (maintenance only)
Score: 72/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 22, longevity 100
- inputs: {"age_days": 3771, "days_push": 7, "days_rel": 310, "gap_med": 299, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 6939, forks 2432 (observed 2026-08-28T04:09:51.629744+00:00)

## What it is
React wrapper components for Chart.js, letting you render charts like Line, Bar, and Doughnut as declarative React components. It supports Chart.js v3 and v4 with tree-shaking, typed components, and event helpers.

## Use cases
- add charts to a react app
- render line and bar charts in react
- react charting library for dashboards
- wrap chart.js in react components
- interactive charts with click events in react
- tree-shakable chart components for react

## When to choose
- you use React and want declarative Chart.js charts
- you need typed, tree-shakable chart components
- you want simple integration with Chart.js v3 or v4

## When to avoid
- you are not using React
- you need a charting library other than Chart.js
- you need server-side chart rendering or image export

## Facets
- artifact type: library
- maturity: stable
- function: data-visualization, charts, ui-components
- domain: data-visualization, frontend, web-development
- platform: browser
- tags: react, chartjs, charting, typescript, esm, tree-shakable, nodejs, web-server

## Member repositories
- reactchartjs/react-chartjs-2 (main) score 72

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:51.629744+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:41:14.258742+00:00, confidence not recorded.
  - readme: https://github.com/reactchartjs/react-chartjs-2 (fetched 2026-08-28T04:09:51.629744+00:00, sha 09e26ba1dc79)
  - homepage: https://react-chartjs-2.js.org (fetched 2026-08-29T08:37:27.153165+00:00, sha 2ca896d5f6f0)
  - site_page: https://react-chartjs-2.js.org/docs/migration-to-v5 (fetched 2026-08-29T08:37:27.157238+00:00, sha 7aa82897e5e4)
  - site_page: https://react-chartjs-2.js.org/docs/migration-to-v4 (fetched 2026-08-29T08:37:27.158955+00:00, sha 757daf88fe6a)
  - site_page: https://react-chartjs-2.js.org/docs/working-with-datasets (fetched 2026-08-29T08:37:27.161140+00:00, sha 76afc992ae3a)
  - site_page: https://react-chartjs-2.js.org/docs/working-with-events (fetched 2026-08-29T08:37:27.164063+00:00, sha 387ab074ba91)
  - site_page: https://react-chartjs-2.js.org/docs/chartjs-v3 (fetched 2026-08-29T08:37:27.165554+00:00, sha 86d5208738d1)
  - site_page: https://react-chartjs-2.js.org/docs/chartjs-v2 (fetched 2026-08-29T08:37:27.167218+00:00, sha 5389adf388fa)
  - registry_npm: https://registry.npmjs.org/react-chartjs-2 (fetched 2026-08-29T08:37:27.169366+00:00, sha 55d8faad0f7a)
  - site_page: https://react-chartjs-2.js.org/faq (fetched 2026-08-29T08:37:27.155542+00:00, sha e685e6836d90)
- Data as of 2026-08-30T08:39:29.467469+00:00.
