[Chartjs]-ChartJS adjusting Pie Chart Legend

1๐Ÿ‘

โœ…

I was able to fix this by moving legend.position from options to options.plugins

  const options = {
    responsive: true,
    animation: {
      animateRotate: false,
      animateScale: true,
    },
    plugins: {
      legend: {
        position: "right",
      },
      title:{
        display: true,
        text: "Current Allocations",
      },
    }
  };

Leave a comment