Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
R

react-chartjs-2

> 前端框架
Open source

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

6.9K stars0 likes0 views
WebsiteGitHub

About

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

react-chartjs-2

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

Supports Chart.js v4 and v3.


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

  • Migration to v4
  • Working with datasets
  • Working with events
  • FAQ
  • Components
  • Examples

License

MIT Licensed Copyright (c) 2020 Jeremy Ayerst

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

TypeScriptchartcharting-librarychartjschartjs-2

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架