Ngx-charts: Chart is not rendered after data is changed

Created on 23 May 2017  路  4Comments  路  Source: swimlane/ngx-charts

Hi,
I'm having the problem when rendering chart from the ajax resource. It render blank. How can I fix this ?

Thanks,
Dong Nguyen

Most helpful comment

Did you try including a force refresh after changing data?

data = [...data];

All 4 comments

Did you try including a force refresh after changing data?

data = [...data];

I fixed this by setting the result variable and calling the update method explicitly.

Guess you can consider closing the thread, my personal opinion is that this doesn't constitute an issue per se.

How did you called the update method plz ? thanks !

Was this page helpful?
0 / 5 - 0 ratings