How to dynamically change the number of labels in each point of a hovertool in bokeh ?

for example if I hover in one point the number of labels will be 1 and upon next plot the number of label maybe 2 or any number. Any help !!

HI,

If there are multiple tooltips popping up, that means that the mouse is hovering over more than one point. There currently as many tooltips shown as there are glyphs under the mouse pointer. There are open issues to make other alternative behaviors available, but that is the current behavior. If you need something different immediately, I can only suggest that a few options. One is writing a custom hover tool extension:

  https://bokeh.pydata.org/en/latest/docs/user_guide/extensions.html

But being honest, that would be somewhat involved in this case. Another option would be to use a CustomJS callback on the data source selection to update e.g. some other div outside the Bokeh plot however you like. That's also involved, but probably less so. Otherwise, it's possible that Bokeh is not the right tool for your needs at present.

Thanks,

Bryan

ยทยทยท

On Sep 17, 2017, at 07:54, Subhajit Karmakar <[email protected]> wrote:

for example if I hover in one point the number of labels will be 1 and upon next plot the number of label maybe 2 or any number. Any help !!

--
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/05210523-d69b-4cec-8101-2dc5eb4ada43%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.