-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
The "plugins" property is not assigned when creating the Chart object #10664
Comments
I've run into this same problem - plugins are no longer registered when you bind them to the |
I submitted a fix, hopefully we can get it reviewed @yigitfindikli |
Seconded. c07677f#r57613082 |
Fixed #10664 - The "plugins" property is not assigned when creating the Chart object
@sgomanf @s4m0r4m4 Do either of you happen to have an example of plugins working on a chart? I've tried to get it working, but to no avail. I'm passing in an array of plugins to the
But I'm not even sure this is what I'm supposed to pass in. I also tried passing in an array like this:
This also didn't work. |
This work for me: import ChartDataLabels from 'chartjs-plugin-datalabels'; export class LineChartComponent {
} component template: <p-chart type="line" [data]="data$ | async" [plugins]="plugins"> |
ChartDataLabels worked the way you explained, but would you be able to do the same using this plugin? https://www.npmjs.com/package/chart.js-plugin-labels-dv I tried several ways and couldn't get a result. |
If you have a PrimeNG PRO Support subscription please post your issue at;
https://pro.primefaces.org
where our team will respond within 4 business hours.
If you do not have a PrimeNG PRO Support subscription, fill-in the report below. Please note that
your issue will be added to the waiting list of community issues and will be reviewed on a first-come first-serve basis, as a result, the support team is unable to guarantee a specific schedule on when it will be reviewed. Thank you for your understanding.
Current Queue Time for Review
Without PRO Support: ~8-12 weeks.
With PRO Support: 1 hour
I'm submitting a ... (check one with "x")
Plunkr Case (Bug Reports)
Please demonstrate your case at stackblitz by using the issue template below. Issues without a test case have much less possibility to be reviewd in detail and assisted.
https://stackblitz.com/github/primefaces/primeng-issue-template
Current behavior
Expected behavior
Minimal reproduction of the problem with instructions
What is the motivation / use case for changing the behavior?
Please tell us about your environment:
Language: [all | TypeScript X.X | ES6/7 | ES5]
Node (for AoT issues):
node --version
=in this poprtion of code:
https://github.com/primefaces/primeng/blob/master/src/app/components/chart/chart.ts#:~:text=this.chart%20%3D%20new,%7D)%3B
must be
The text was updated successfully, but these errors were encountered: