Status of multiple hovertools on multiple glyphs?

I have a line plot with some circles plotted as well. The data is from different datasets, so the lines and the circles need to have different tooltips. At the very least, I’d like to have tooltips only for the circles, but not the line.

I found this:

but the fixes seem kludgy and outdated. Is there an official way to do this right now? Does anyone have some examples?

Hi Chris,

You can reference the glyph renderer when you add your tool.

You’ll probly do something like:

circle = Circle(…)

circle_renderer = p.add_glyph(source, circle)

p.add_tool(HoverTool(renderers=[circle_renderer]))

Hope this helps,

Bird

···

On Fri, May 22, 2015 at 2:01 PM, Chris Lindner [email protected] wrote:

I have a line plot with some circles plotted as well. The data is from different datasets, so the lines and the circles need to have different tooltips. At the very least, I’d like to have tooltips only for the circles, but not the line.

I found this:

https://github.com/bokeh/bokeh/issues/975

but the fixes seem kludgy and outdated. Is there an official way to do this right now? Does anyone have some examples?

You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.

To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/f5396199-259e-4d25-a371-17b9f089e7b7%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.