☰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

Updating TickFormatter dynamically

Community Supportbokehjsbokeh
BlackFog
BlackFog

I have a Select() widget with different options, and my x_axis_type is "datetime". Depending on the Select() option I display a broader or narrower time range of data. I want to modify my DatetimeTickFormatter when changing Select() options. So far, I have tried this code within jv_on_change():

for (let i = 0; i < formatters.length; i++) {
    formatters[i].minutes = new_format.minutes;
    formatters[i].hours = new_format.hours;
    formatters[i].days = new_format.days;
}

Having inputted formatters as: args={"formatters": [plot.xaxis[0].formatter for plot in plots]}.

If I use console.log(formatters[i]), I can check that the object is updated, but I do not see the change in my plots. How can I achieve this (if it is possible)?

⌁   Link to post

End of archived discussion · Replies are disabled