Description
react-chartjs is a set of React charting components built on Chart.js. It provides line, bar, radar, polar area, pie and doughnut charts as React components, so you can put charts into a React interface without writing the Chart.js setup yourself. The README says the package is CommonJS only, meant for use with a bundler such as Webpack or Browserify, and that you need to install Chart.js and React as dependencies. Each chart takes the data and the options from Chart.js as props, and any other props are passed through to the underlying canvas element. When the data changes, the points animate between the old and new values. If you would rather the chart be destroyed and redrawn on each change, a prop can turn that on. The README also explains how to get a reference to the chart element and the Chart.js object from your component. The page has a link to a set of chart examples.…
Highlights
- Line, bar, radar, polar area, pie and doughnut charts
- Built on Chart.js
- Data and options passed as props
- Animates between data changes
- Examples page
Ratings & Reviews
No ratings yet
Be the first to rate react-chartjs.
People also visit
react-chartjs FAQ
What is react-chartjs?
A set of React components for drawing charts with Chart.js.
Which chart types are included?
Line, bar, radar, polar area, pie and doughnut charts.
What else do I need to install?
Chart.js and React, which the README lists as dependencies. It is meant to be used with a bundler such as Webpack or Browserify.
What happens when the data changes?
The points animate between the old and new values. A prop can make the chart redraw from scratch on each change instead.
Where can I see examples?
The README links to a page of chart examples.
What are the best react-chartjs alternatives?
Popular alternatives to react-chartjs include react-c3js, react-google-charts and react-chartist. See all react-chartjs alternatives




















