React components for Chart.js, the most popular charting library
React components for Chart.js, the most popular charting library
React 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.jsWe 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
Dependency Dashboard
[Bug]: Charts are auto-registered in develop build, but not in production build
[Bug]: Cannot find module 'node_modules/react/jsx-runtime
[Bug]: Responsive chart shrinks only
Combo Bar/Line Chart
[Bug]: A undifined canvas error occuring in react-native
[Bug]: Code sandbox for Scatter Chart on example website not working
[Bug]: Bar Chart with multiple dataset stacks reanimating when data changes
[Bug]:Chart display & scaling
[Bug]: Chart shakes during resize