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