joewalnes / smoothie

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

fix: series fill & stroke being inconsistent for last data time < render time #138

Closed WofWca closed 2 years ago

WofWca commented 2 years ago

It would depend on scrollBackwards and fillStyle being undefined or not. Depending on this, it would either continue the line up to the edge of the canvas or leave it at lastX. This makes it so that it is always left at lastX.

An example

Before:

After:

TODO:

WofWca commented 2 years ago

This also made me think if we should add a TimeSeries option called extrapolateFuture that would make it behave as on the "before" example.