Last updated
Last updated
It’s often useful to link plots to add connected interactivity between plots. We can link pan or zooming actions across plots. All that is needed to enable this feature is to share range objects between figure()
calls.
Let's prepare some data firstly
Linked brushing is expressed by sharing data sources between glyph renderers. This is all needs to understand that selections acted on one glyph must pass to all other glyphs that share that same source.
It is also possible to link values of Bokeh model properties together so that they remain synchronized. We need to use the js_link
method.
Sometimes it is valuable to be able to hide or mute glyphs by clicking on an entry in a Legend
. Thus, your audience can pay more attention to what you want them to focus on. Let's use the stock graph for example.