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