Change Plot on Different Wiget Value

I want a totally different plot, for different dates present in a Select Widget.

Like a heatmap for a day and then a scatter chart for another day using CustomJS.

But I couldn’t find the way. The only way I could find was using TABs, But the values are two many I want to show them in a dropdown, not possible to show all tabs.

When you call a function like plot.circle, it returns a glyph renderer. It has a boolean property called visible. I would just plot everything at once with some glyphs having visible=False and then toggle visible via a callback (Python or JS - depending on whether you’re using bokeh serve).

1 Like

@p-himik thanks for the response, I actually created figures with visible false, and put all those in a dictionary, passed that dic to JS and it did work as you mentioned.

Thanks a lot.