Open jrvaroni opened 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 }
labels: { render: 'percentage', fontColor: ['green', 'white', 'red'], precision: 2 }
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.
plugins: {labels: false}
@Joyrex Thank's, worked with me!
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 }