joewalnes / smoothie

Smoothie Charts: smooooooth JavaScript charts for realtime streaming data
http://smoothiecharts.org
Other
2.24k stars 229 forks source link

stream jumpy on the right end with non-real time data #110

Closed zuliani71 closed 2 years ago

zuliani71 commented 5 years ago

I am getting data from an external device that streams its data on a TCP/IP socket. The data is sampled once at second. I succesfully captured and injected that data inside a smoothie time serie. The timestamps are not in sync with the real time and to overcome the problem I've used the the nonRealtimeData option that helped me to corretly see the scrolling time serie on my browser. I'm pretty happy of the result but the chart doesn't look like a continual stream but very jumpy on the right hand side. I see to get around this I need to add a delay to the chart. I've tried that but without any result.

I'm able to run the smoothie examples and I can see the effect of adding a delay on them but on my chart this solution doesn't work. May be that is caused by the nonRealtimeData option I'm using with my data.

Is there some extra hiden option I need to use?

thiswallz commented 5 years ago

use the delay option

zuliani71 commented 5 years ago

Hi thiswallz, thanks for answering. I've already tried with the delay option but no changes. I think the delay option doesn't work if the nonRealtimeData option is enabled

WofWca commented 2 years ago

Can you set nonRealtimeData back to false? If this is not enough, see if you can convert (map) the data you get to real-time data.