-
Notifications
You must be signed in to change notification settings - Fork 576
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to specify pert-chart plugins? #1577
Comments
As I can see, your "getChartConfiguration()" doesn't allow to assign local pluggins to the chart getChartConfiguration() {
return {
type: this.type,
data: this.getChartData(),
options: this.getChartOptions(),
// This is the point to add local pluggins :-/
};
} Sometimes I need an specific "background" drawing for my particular chart (not as a generic chart plugin) and I need to implement a custom beforeDraw or afterDraw. Local plugins are really good for this kind of functionalities |
Sorry, I see you solved this in v4. |
In case anyone still wondering, you can add plugins via the In .component.html:
In .component.ts:
I wish there was a clearer explanation of this in the documentation so that you don't have to check the library's internals to find the answer to your questions.. |
Sorry, this is only a question I can't solve about plugins registration:
Standard chatjs accepts to register per-chart plugin this way:
How can this be performed using ng2-charts?
thank you for advance
The text was updated successfully, but these errors were encountered: