Hi, I don’t understand if possible dinamically update sparkline in “real time” while the page is showed or it is static component and show the only data passed in page loading. If is static, how I can obtain dinamically update?
At the moment, as experiment, I put a cyclical changing of the values of data array bounded to sparkline in page.component.ts, but the line showed by sparkline not change.
Hi, I found this point to manage the programatically updating of sparkline:
Every time you want update the sparkline you must create e new instance of the array with the data. Otherwise sparkline element probably not detect the new values.
If values array contains the same value in every element, sparkline is not showed. To workaround this
behavoir add a very little random quantity to the value.
Could you check sparkline implementation to improve these points.