☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

Source.stream timeseries line plot with pass/old/previous data

Community Supportserver
soysouce
soysouce

I’m tring to stream data after x_range.on_change.
The thing is, if the current plot is 2020/01/10 data, when I’m streaming 2020/01/09 data.
The line plot will draw a line between the oldest data point and the newest data point.
It will create a single line across the whole figure.

⌁   Link to post
Bryan
Bryan

Stream is explicitly only for appending new data to to the end of a data array, and line is explicitly only for connecting points in the order they appear in a data array, so this is entirely the expected behaviour. There are really only two options:

  • Don’t use stream. You’ll have to sort all the data by the dates to be in the correct time-order, and then update the entire data whole, instead of just streaming new points to it.

  • Don’t use line. Use a scatter plot, then the ordering will not matter visually since there is no connected topology between points.

⌁   Link to post

End of archived discussion · Replies are disabled