[Chartjs]-ChartJs โ€“ Pie Chart โ€“ how to remove labels that are on the pie chart

2๐Ÿ‘

You need to turn off the sample labels, like this:

options: {
  plugins: {
    datalabels: {
      display: false
    }
    outlabels: {
      display: true
    }
  }
}

0๐Ÿ‘

@yurzui mentioned, there was reference of chartjs-plugin-labels which i missed to remove. Thanks @yurzui

Leave a comment