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.
Source:stackexchange.com