[Chartjs]-Legend isnt moving to the right on my doughnut chart created with chart.js

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'
       }
    }
 }

Leave a comment