OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

customising tooltips in holoview

  • Thread starter Thread starter sdsodi
  • Start date Start date
S

sdsodi

Guest
does anyone know how to change the hover tooltips when using holoviews with a bokeh backend?

in my notebook and using holoviews for visualisation i activate tooltips using

Code:
%%opts Scatter [tools=['hover']]

by default this makes a tooltip which displays the names of the axis and the value of the point. in bokeh you can alter the tooltip using

Code:
from bokeh.models import HoverTool
hover = HoverTool(tooltips=[
    ("index", "$index")
])

or any variation of what you want the tooltip to display. when i do this first before adding the hover tool in holoview nothing changes. does anyone know how i could change this if i dont want the default, or need to format it?
<p>does anyone know how to change the hover tooltips when using holoviews with a bokeh backend?</p>

<p>in my notebook and using holoviews for visualisation i activate tooltips using </p>

<pre><code>%%opts Scatter [tools=['hover']]
</code></pre>

<p>by default this makes a tooltip which displays the names of the axis and the value of the point. in bokeh you can alter the tooltip using</p>

<pre><code>from bokeh.models import HoverTool
hover = HoverTool(tooltips=[
("index", "$index")
])
</code></pre>

<p>or any variation of what you want the tooltip to display. when i do this first before adding the hover tool in holoview nothing changes. does anyone know how i could change this if i dont want the default, or need to format it?</p>
 
Top