The app will update data every 100ms, always showing the most recent 500 data samples and appending new data to the right side of the plot (AjaxDataSource stream in append mode). This all works great based on an example in flask_bokeh_ajax. The issue I’m having is finding a way to not update the x-axis data. Ideally, I’d like the x-axis to show the age of a sample (-50 to 0 seconds) , not an absolute time that it was collected or an arbitrary index number. The only way I’ve found to do this is to use “replace” mode for AjaxDataSource, and this doesn’t work well given the size and update rate of the data. Is there a way to only update the Y-axis data and keep the x-axis static?
An example of what I’m trying to do can be found on this [completely unrelated] page:
I’m probably going to write some type of custom extension anyway to handle the socket-io events I intend to use for my data stream in the final app but don’t want to re-invent this capability if it already exists.
Thanks for a great library.