emn178 / chartjs-plugin-labels

Plugin for Chart.js to display percentage, value or label in Pie or Doughnut.
MIT License
615 stars 219 forks source link

The plugin generates global label, even though I set only local #86

Open jrvaroni opened 5 years ago

jrvaroni commented 5 years ago

I'm using chartjs-plugin-labels to generate label in pie charts, but other charts, but other graphics are also getting the labels. And the option also does not work as I configure it.

"@angular/common": "^5.2.7", "chart.js": "^2.7.2", "chartjs-plugin-labels": "^1.1.0",

does not work and label is generated global labels: { render: 'percentage', fontColor: ['green', 'white', 'red'], precision: 2 }

Joyrex commented 5 years ago

As mentioned in other issues, it looks like the fix is to setplugins: {labels: false} on the particular chart(s) you do not want the labels to appear.

dipedro commented 5 years ago

@Joyrex Thank's, worked with me!