[Chartjs]-React Chart.JS cant move legend (TypeScript)

6๐Ÿ‘

โœ…

 const options = {
    plugins: {
      legend: {
        position: "right" as const
      },
      title: {
        display: true,
        text: "Title"
      }
    }
  };

Here is an explanation from TypeScript docs โ€“ https://devblogs.microsoft.com/typescript/announcing-typescript-3-4-rc/#const-assertions

Leave a comment