Chartjs-How to use chartjs-plugin-trendline with react-chartjs-2

0👍

The trendline plugin requires chart.js version 2, react chart.js uses version 3 so you will need to downgrade react-chartjs

Commands:

yarn remove react-chartjs-2

yarn add react-chartjs-2@2.11.2

Leave a comment