Interaction#
Bokeh offers several ways to respond to browser-based interactions from users. A lot of this interactivity can be defined in Python, with no or only limited JavaScript required.
- Plot tools
Bokeh makes it simple to add certain kinds of linked interactions between plots, such as linked ranges when panning and zooming, or linked highlighting when making selections.
- Linked behavior
Bokeh makes it simple to add certain kinds of linked interactions between plots, such as linked ranges when panning and zooming, or linked highlighting when making selections.
- Interactive legends
Bokeh
Legends
can be configured to allow for easily hiding or muting corresponding glyphs.- Widgets and DOM elements
Bokeh comes with a rich set of widgets that can be used with either client-side JavaScript callbacks, or with real Python code in a Bokeh server application.
- JavaScript callbacks
Bokeh’s
CustomJS
callbacks allow you to define JavaScript-based custom interactivity for various widgets and events in Bokeh documents.- Python callbacks
In Bokeh Server apps, you can use Bokeh’s Python callbacks to define custom interactivity for various widgets and events.
- Tooltips
Bokeh lets you use tooltips to add additional information to most UI elements in your visualization.