Plugin
How to use plugins
const plugin1 = { /* plugin implementation */ }; const plugin2 = { /* plugin implementation */ }; // Global registeration, plugin will be registered to all the chart plugins Chart.plugins.register(plugin1); // Global registeration for multiple plug-in Chart.plugins.register([ plugin1, plugin2 ]);const plugin1 = { /* plugin implementation */ }; const plugin2 = { /* plugin implementation */ }; // chart1 use "plugin1" const chart1 = new Chart({ plugins: plugin1 ); // chart2 use "plugin2" const chart2 = new Chart({ plugins: plugin2 ); // chart3 doesn't use "plugin" const chart3 = new Chart({});
Unregister plugins
Clear plugins
Get registered plugins
How to define plugin
Available hooks
Last updated