question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

HoverTool with several Glyphs, selecting just one Glyph

See original GitHub issue

When using a HoverTool in a Plot with several Glyphs, how can you (or can you?) specify to just hover over one of the Glyphs?

Right now, if I have Patches + Circles that overlay, the circle doesn’t get the hover box displayed just the Patch, if there is no Patch (e.g. in a map, the sea), then the circle does get the hover box displayed.

e.g.: screen shot 2014-08-07 at 1 20 50 pm

screen shot 2014-08-07 at 1 21 05 pm

If just one of the Glyphs has the variable in the HoverTool (e.g. Circles source has name, Patches source doesn’t), then you still get this:

screen shot 2014-08-07 at 1 39 36 pm

Ideas: -In case of several Glyphs, if one doesn’t have the variables name in its source, then HoverTool doesn’t apply to that Glyph? or, -Be able to assign Hover to a particular Glyph?

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
bryevdvcommented, Oct 13, 2014

Hover does not currently play well with multiple renderers.

Here is the status as of #1294: You can attach a specific hover tool a specific renderer, either by passing the renderer itself to .renderers list or by passing the name for the renderer into .names list. Making hover work well will multiple renderers is on my short list but it is not trivial.

0reactions
bryevdvcommented, Dec 7, 2014

dupe of #1510

Read more comments on GitHub >

github_iconTop Results From Across the Web

Status of multiple hovertools on multiple glyphs?
I have a line plot with some circles plotted as well. The data is from different ... HoverTool with several Glyphs, selecting just...
Read more >
Using selection_glyph as renderer for hovertool - Stack Overflow
hover.names, but it does not work. Basically i have a plot with many glyphs and i want the tooltip to appear when a...
Read more >
Adding Hover Actions - Real Python
In this lesson you will add hover actions to your last visualization. For this you'll employ Bokeh's HoverTool() to show a tooltip when...
Read more >
Interactive Data Visualization with Bokeh - Trenton McKinney
Bokeh is an interactive data visualization library for Python, ... Dictionaries; Sequences (lists, arrays): Multiple glyphs can be drawn by setting glyph ......
Read more >
Adding Interactions - Bokeh documentation
... a widget's functionality: Use the CustomJS callback (see CustomJS for Widgets). ... A multi-select widget to present multiple available options: Option:.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found