angular ngx-chart view update with async data acquired via for loop

preview_player
Показать описание
ngx-chart is a nice library but there's a quirk. Child component's view does not refresh when data passed from parent are refreshed in a for loop. An extra assignment needs to be performed to update child's view.
Рекомендации по теме
Комментарии
Автор

to much time wasted looking for a solution for this.... thank you very much friend!

vias
Автор

Thanks a lot for you instruction how to solve that issue with "push". I had the same issue and now it's solved!

DawidKrempic
Автор

what should be the code in service to push json to the charts

shaileshkumar-ykmw
Автор

it doent work for me both ways :(, even tho the data is correctly fetched from the db

emnaChrif
Автор

Can you share sample codes please. I want to send data from node-js to html chart page(Not php or asp)
I think, this example is match my requires.

PIDOtomasyon
Автор

NGXcharts are irritating me it's really shit tbh. way to many quirks and issues... if you scrub the timeline and then stop scrubbing/zooming you will also find the updating stops. total ass.

TheBendixSA
welcome to shbcf.ru