ng2-charts icon indicating copy to clipboard operation
ng2-charts copied to clipboard

How to specify pert-chart plugins?

Open ddcovery opened this issue 2 years ago • 3 comments

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

ddcovery avatar Dec 27 '22 13:12 ddcovery