ng2-charts
ng2-charts copied to clipboard
How to specify pert-chart plugins?
Sorry, this is only a question I can't solve about plugins registration:
Standard chatjs accepts to register per-chart plugin this way:
const plugin = { /* plugin implementation */ };
// chart1 and chart2 use "plugin"
const chart1 = new Chart(ctx, {
plugins: [plugin]
});
const chart2 = new Chart(ctx, {
plugins: [plugin]
});
// chart3 doesn't use "plugin"
const chart3 = new Chart(ctx, {});
How can this be performed using ng2-charts?
thank you for advance