HoverTool - Wrapping lengthy text

Hi there,

I need some guidance. I am using the hovertool to show to users what text represents the underlying data point (e.g. facebook post). The challenge I have is, is the hovertool grows infinitely wide in order to fit the text.

e.g.

How can I apply word-wrapping such that the text element is more readable and the hover tool border fits nicely within the display dimensions. Any guidance will be much appreciated.

Thanks

Hi,

You can supply a custom HTML template to the hover tool, which is probably your best bet in cases like this:

  http://bokeh.pydata.org/en/latest/docs/user_guide/tools.html#custom-tooltip

Thanks,

Bryan

···

On May 31, 2016, at 7:42 AM, [email protected] wrote:

Hi there,

I need some guidance. I am using the hovertool to show to users what text represents the underlying data point (e.g. facebook post). The challenge I have is, is the hovertool grows infinitely wide in order to fit the text.

e.g.

How can I apply word-wrapping such that the text element is more readable and the hover tool border fits nicely within the display dimensions. Any guidance will be much appreciated.

Thanks

--
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/fbfdb703-fee5-4c71-89d9-8a75ac86d2cc%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.