Chartjs-Cannot place the ChartJs legends on the left

1👍

legend must be placed inside options.plugins, same as datalabels.

const options = {
  plugins: {
    datalabels: {
      ...
    },
    legend: {
      position: 'left'
    }      
  }
};

For further information, please consult the Chart.js documentation here.

Leave a comment