1👍
You are using the new V3 version of the lib instead of V2
So please read the migration guide from chart.js (https://www.chartjs.org/docs/latest/getting-started/v3-migration.html)
The legend options have been moved to the plugin section like this
options: {
plugins: {
legend: {
position: 'right'
}
}
}
- [Chartjs]-Chart.js Point image on hover
- [Chartjs]-ChartJS keeps adding one day to X axis. I cannot find a reason. Any suggestion?
Source:stackexchange.com