GitPedia

React chartjs 2

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

From reactchartjs·Updated June 11, 2026·View on GitHub·

React components for Chart.js, the most popular charting library. The project is written primarily in TypeScript, distributed under the MIT License license, first published in 2016. It has gained significant community traction with 6,933 stars and 2,447 forks on GitHub. Key topics include: chart, charting-library, chartjs, chartjs-2, charts.

Latest release: v5.3.1
October 27, 2025View Changelog →

react-chartjs-2

<img align="right" width="150" height="150" alt="Logo" src="website/static/img/logo.svg">

React components for <a href="https://www.chartjs.org">Chart.js</a>, the most popular charting library.

Supports Chart.js v4 and v3.

NPM version
Downloads
Build status
Coverage status
Bundle size

<br /> <a href="#quickstart">Quickstart</a> <span>&nbsp;&nbsp;•&nbsp;&nbsp;</span> <a href="#docs">Docs</a> <span>&nbsp;&nbsp;•&nbsp;&nbsp;</span> <a href="https://stackoverflow.com/questions/tagged/react-chartjs-2">Stack Overflow</a> <br /> <hr />

Quickstart

Install this library with peer dependencies:

bash
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:

jsx
import { Doughnut } from 'react-chartjs-2'; <Doughnut data={...} />

Docs

License

MIT Licensed
Copyright (c) 2020 Jeremy Ayerst

Contributors

Showing top 12 contributors by commit count.

View all contributors on GitHub →

This article is auto-generated from reactchartjs/react-chartjs-2 via the GitHub API.Last fetched: 6/16/2026