☰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

How to create a plot with stacked timeseries and shared x-axis and shared range slider?

Community Support
johann-petrak
johann-petrak

I am considering moving from the Plotly ecosystem to Bokeh/Holoviews but one requirement is that it should be possible to plot several time series in “stacked” view, where all the time series share the x-axis, and a range slider, but have their own y-axis.

Here is an image that illustrates what this looks like:

Is it possible to do this?

I would need to be able to have this plot interact with the bokeh/panel server so that a callback gets invoked whenever the plot is scrolled/zoomed or whenever a range is selected.

⌁   Link to post
Bryan
Bryan

@johann-petrak Sorry, I interpreted “share the x-axis” in the OP to refer to linked axes. You can pass x_axis_location=None to the figure to omit a visible axis. This example may be instructive:

⌁   Link to post
Bryan
Bryan

Well, I forgot that example uses the lower level bokeh.models API directly. It still may be instructive, but there are lots of others that set x_axis_location you can grep for.

⌁   Link to post

End of archived discussion · Replies are disabled