☰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

Optional "tooltips"

Community Support
Harry_Mao
Harry_Mao

This is my geography map:

This is my tooltips:

tooltips=[
(“Name”, “@name”),
(y, “@sizes_ori”),
("(Long, Lat)", “($x, $y)”),
],

What are you trying to do?
When I add tooltips in my geography map, I want to only show Name and (long, lat) for the first situation, and only show num and (long, lat) for the second. But since they are in the same figure, I can only use one tooltips. In other word, I don’t want to show “???” if the attribute is missed.

Could anyone help me for this? Thanks!

⌁   Link to post
Bryan
Bryan

You will need to add two separate HoverTool instance, with different separate tooltips, and also configure the renderers property of the tools to restrict each tool to one of the glyph renderers (by default, hover tools work on every available glyph)

⌁   Link to post

End of archived discussion · Replies are disabled