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