React components for Chart.js, the most popular charting library
See the codeReact components for Chart.js, the most popular charting library.
Supports Chart.js v4 and v3.
Install this library with peer dependencies:
pnpm add react-chartjs-2 chart.js
# or
yarn add react-chartjs-2 chart.js
# or
npm i react-chartjs-2 chart.js
We recommend using chart.js@^4.0.0.
Then, import and use individual components:
import { Doughnut } from 'react-chartjs-2';
<Doughnut data={...} />
MIT Licensed Copyright (c) 2020 Jeremy Ayerst
Overall
Maintained
Code review
Latest release
Releases this year
(top 24 of 32)
500 followers · starred Feb 2017
1,590 followers · starred Jan 2020
5,137 followers · starred Feb 2022
25 followers · starred Sep 2018
React components for Chart.js, the most popular charting library
See the codeReact components for Chart.js, the most popular charting library.
Supports Chart.js v4 and v3.
Install this library with peer dependencies:
pnpm add react-chartjs-2 chart.js
# or
yarn add react-chartjs-2 chart.js
# or
npm i react-chartjs-2 chart.js
We recommend using chart.js@^4.0.0.
Then, import and use individual components:
import { Doughnut } from 'react-chartjs-2';
<Doughnut data={...} />
MIT Licensed Copyright (c) 2020 Jeremy Ayerst
Overall
Maintained
Code review
Latest release
Releases this year
(top 24 of 32)
500 followers · starred Feb 2017
1,590 followers · starred Jan 2020
5,137 followers · starred Feb 2022
25 followers · starred Sep 2018