How to enable HoverTool tooltip for Text?

No warnings on the Python side, but the javascript side says:

Bokeh: ‘point’ selection not available for Text

This makes sense, however, is there a way to enable a tooltip for Text?

I use plot.text just to display a special character where I need it on the canvas.

This is currently supported. Hover tool relies on the hit testing machinery being implemented for a given glyph, and it has not yet been implemented for text. It might make a nice starter PR if you are interested and able to make contributions. Otherwise, a workaround would be to display an invisible (alpha=0) glyph coincident (or roughly coincident) with the test, and let that drive the hit testing and hover tool.

Bryan

···

On Apr 11, 2016, at 11:38 AM, [email protected] wrote:

No warnings on the Python side, but the javascript side says:

Bokeh: 'point' selection not available for Text

This makes sense, however, is there a way to enable a tooltip for Text?

I use plot.text just to display a special character where I need it on the canvas.

--
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/47e6b08a-05bf-46cb-96bd-f466ccf9f18d%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

Sorry, that should be: This is NOT currently supported.

Bryan

···

On Apr 11, 2016, at 11:42 AM, Bryan Van de Ven <[email protected]> wrote:

This is currently supported. Hover tool relies on the hit testing machinery being implemented for a given glyph, and it has not yet been implemented for text. It might make a nice starter PR if you are interested and able to make contributions. Otherwise, a workaround would be to display an invisible (alpha=0) glyph coincident (or roughly coincident) with the test, and let that drive the hit testing and hover tool.

Bryan

On Apr 11, 2016, at 11:38 AM, [email protected] wrote:

No warnings on the Python side, but the javascript side says:

Bokeh: 'point' selection not available for Text

This makes sense, however, is there a way to enable a tooltip for Text?

I use plot.text just to display a special character where I need it on the canvas.

--
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/47e6b08a-05bf-46cb-96bd-f466ccf9f18d%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.