Dear community,
With Bokeh it is easy to create informative tooltips for the data in plots. How can I create and customize hover tooltips for widget elements in the resulting webpage?
All the searching about hover tooltips for Bokeh lead to plot tooltips. But I want to convey additional information to the user about the widgets in my app, specifically information about slider and select widgets.
I got it partially working by adding custom_css classes to the widgets and using my own css-file, but I am not able to fully customize my tooltips the way I want to. My remaining issues are as follows:
- I would like to copy the style of the tooltips available for plots, but I cannot draw a border. It seems like another style setting forces
border:0;
- I cannot display the tooltip arrow. All the general examples on tooltips via css I can find use another css class for the tooltip itself, which is defined in html.
- Currently I have defined the tooltip text for each tip in the styles.css. If possible, I would like to define them in the python code.
I posted this question on stackoverflow before, where you can find my full explanation and a working example:
I hope redirecting there is fine