☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

HoverTool - Wrapping lengthy text

Community Support
swayson1
swayson1

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

⌁   Link to post
Bryan
Bryan

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, swayson1@gmail.com 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 bokeh+unsubscribe@continuum.io.
To post to this group, send email to bokeh@continuum.io.
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\.

⌁   Link to post

End of archived discussion · Replies are disabled