I'm trying to unregister the plugin as I only want the datalabel on certain charts. According to the datalabel tutorial it says:
This plugin registers itself globally , meaning that once imported, all charts will display labels. In case you want it enabled only for a few charts, you first need to unregister it globally:
Code: Select all
Chart.plugins.unregister(ChartDataLabels);