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
Chart isn't updating with Response data (Chart.js: 3.2.1, ng2-charts: 3.0.0-beta.9) #1313
Comments
@nerkess would you be able to try this again with 3.0.0-rc.1? |
@santam85 Thank you for the reply! |
You can temporarily work around the issue by calling |
I was using chart.update() |
@nerkess released 3.0.0-rc.2 with a small fix for this. Tested it in your stackblitz and seems to work with .update() now (or even without it altogether, depending on the parameters used). You should get better performance with that. |
@santam85 yes, it's working without update too, that's pretty cool 👍 thank you for your contribution! |
I am using Chart.js of version 3.2.1 and ng2-charts of version 3.0.0-beta.9. I was upgrading a project with this versions. I started with mock data and everything was ok: the charts were showing up as expected.
Until I started testing with the real data, I get from the backend. The axes, labels, legends are not updating and charts are not showing up.
I reproduced the problem here:
https://stackblitz.com/edit/chart-js-321-ng2-charts-300-beta9-rest?file=src%2Fapp%2Fapp.component.ts
The text was updated successfully, but these errors were encountered: