☰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

Legend question

Community Support
Rick
Rick

How would I add a legend tag to a figure glyph, if I added the glyph like so:

fig = figure()
glyph = Circle(…)
rend = fig.add_glyph(source, glyph)
…
hover = HoverTool(renderers=rend)

``
fig.add_tools(hover)

I assume something like: fig.legend.circle = …

The reason I’m doing this way is that I have multiple glyphs, but only want hover functional for a subset.

Is there is a different way using the more traditional fig.glyph?

fig.circle(… legend=‘circle’)
hover = HoverTool(renderers = fig.circle)

``

⌁   Link to post

End of archived discussion · Replies are disabled