yarn add react-chartjs-2 chart.js code example Example: react chart js 2 npm install --save react-chartjs-2 chart.js