Skip to content

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

License

Notifications You must be signed in to change notification settings

ali-mozaffari/react-chartjs-2

 
 

Repository files navigation

react-chartjs-2

Logo

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

Supports Chart.js v3 and v2.

NPM version Downloads Build status Coverage status Bundle size


Quickstart   •   Docs   •   Slack   •   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@^3.0.0.

Then, import and use individual components:

import { Doughnut } from 'react-chartjs-2';

<Doughnut data={...} />

Need an API to fetch data? Consider Cube, an open-source API for data apps.


supported by Cube

Docs

License

MIT Licensed Copyright (c) 2020 Jeremy Ayerst

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 85.9%
  • JavaScript 12.8%
  • CSS 1.3%