Unregistering Plugin for Charts

UI Components for Angular
Post Reply
Tessalation20x
Posts: 1
Joined: 14 Feb 2019, 17:24

14 Feb 2019, 17:27

I'm currently using Chartjs Datalabel Plugin - https://github.com/chartjs/chartjs-plugin-datalabels

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);
How can I do this?

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 20 guests