Skip to content
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

Add Updated event #1311

Open
dmoore1181 opened this issue May 4, 2021 · 1 comment
Open

Add Updated event #1311

dmoore1181 opened this issue May 4, 2021 · 1 comment
Assignees
Milestone

Comments

@dmoore1181
Copy link

Reproduction of the problem

ng2-charts is a port & modification of Chart.js component for Angular 2. Sometimes the issue is related with Chart.js instead of ng2-charts.
To confirm, if the issue shows in a pure Chart.js project, it is a issue of Chart.js.
Pure Chart.js starting template: https://jsfiddle.net/Hongbo_Miao/mvct2uwo/3/

If the issue does not show in a pure Chart.js project, and shows in a ng2-charts project, please try to provide a minimal demo of the problem.
ng2-charts starting template: http://plnkr.co/edit/Ka4NXG3pZ1mXnaN95HX5?p=preview

I am using ng2-charts 2.4.2, chart.js 2.9.4, and angular 9.1.13. I want to add a suggestion to have an updated event that can be subscribed to. We have a use case where we need to maintain the current version of the base64 image and the only way I have found to do this so far is to add in a 1 second timeout to ensure that the chart is actually done updating (not fool proof and a little hacky).

ps: I was going to create a plunkr with your template, but the template isn't working.

@santam85 santam85 added this to the 3.0 milestone Jul 5, 2021
@santam85
Copy link
Contributor

santam85 commented Jul 5, 2021

Will add this feature to v3.0

@santam85 santam85 self-assigned this Jul 7, 2021
@santam85 santam85 modified the milestones: 3.0, 3.1 Oct 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants