☰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

Update xrange dynamically based on a ColumnDataSource object

Community Support
zoe.a.cesar
zoe.a.cesar

Hello! Is there a way to update the xaxis of a bar chart using a columndatasource object? I have a chart that updates the bars based off of what is selected, but I want the tick marks in the xaxis to only represent the values that are being displayed. So, I figured the best option would be to dynamically update the xrange as each new value is selected, similar to how the overall plot is changed based on this.

⌁   Link to post
zoe.a.cesar
zoe.a.cesar

This question has been answered here: python - Bokeh Dynamically Update xrange based on a ColumnDataSource - Stack Overflow

···

On Tuesday, August 7, 2018 at 11:24:32 AM UTC-4, Zoë Cesar wrote:

Hello! Is there a way to update the xaxis of a bar chart using a columndatasource object? I have a chart that updates the bars based off of what is selected, but I want the tick marks in the xaxis to only represent the values that are being displayed. So, I figured the best option would be to dynamically update the xrange as each new value is selected, similar to how the overall plot is changed based on this.

⌁   Link to post

End of archived discussion · Replies are disabled