ArthurGuibert/FSLineChart

Can i reload Chart with some updated data?

AlessandroFronteddu opened this issue · 4 comments

Hi, does FSLineChart support reloading ( using for example NSTimer ) chart with updated data ?

More in depth: can i reload chart every seconds with new data ?

Hi! I don't really know... it should be doable as long as you keep the same number of points and then update the path. As it is now I'm not sure the architecture of FSLineChart allows that. But that's definitely something worth digging! I'm going to have a look :)

Alternatively, as a temporary solution, you can remove the chart view and create a new one with the new data.

thedp commented

+1

It should work better now. It doesn't mean this library really supports live data though.