[Chartjs]-How to use chartjs-plugin-datalabels for specific charts using vue-chart.js

2πŸ‘

βœ…

To disable the chartjs-plugin-datalabels globally i had to use

Chart.plugins.unregister(ChartDataLabels);

instead of

Chart.defaults.global.plugins.datalabels.display = false;

in my main.js file. Then addPlugin function works perfectly.

Leave a comment