Skip to content

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

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

reactchartjs/react-chartjs-2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d95f040 · Jan 1, 2025
Jan 1, 2025
Jan 1, 2025
Jan 1, 2025
Jan 1, 2025
Jan 1, 2025
Jan 1, 2025
Dec 30, 2024
Jan 19, 2022
Feb 18, 2022
Dec 21, 2021
Nov 22, 2021
Nov 22, 2021
Jan 1, 2025
Nov 16, 2022
Jul 20, 2022
Jul 19, 2022
Oct 12, 2021
Jan 13, 2022
Jan 1, 2025
Dec 30, 2024
Jan 1, 2025
Feb 18, 2022
Oct 8, 2020
Dec 30, 2024
Jan 1, 2025
Jan 1, 2025
Dec 30, 2024
Jan 1, 2025
Jan 1, 2025

Repository files navigation

react-chartjs-2

Logo

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

Supports Chart.js v4 and v3.

NPM version Downloads Build status Coverage status Bundle size


Quickstart   •   Docs   •   Stack Overflow

Quickstart

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={...} />

Docs

License

MIT Licensed Copyright (c) 2020 Jeremy Ayerst