☰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

Whisker + legend

Community Support
gkanarek
gkanarek

I’m trying to create an interactive legend for a plot which contains points and error bars (via Whisker objects). However, Whiskers don’t have a legend_label attribute, so I have no idea how to connect them with their associated points, for the purposes of legend interactivity. How should I go about doing this?

⌁   Link to post
Bryan
Bryan

Annotations (e.g. Whisker) do not currently participate in legends (interactive or otherwise). It’s probably something that could/should be improved. I’d encourage you to make an issue on GitHub with as much information as possible, e.g some minimal sample code that you would like to have work.

For the time being, the only thing I can think of is that you might be able to link visible property of the annotation to the visible property of they glyph. Either with a CustomJS callback, or possibly even a simpler js_link.

⌁   Link to post

End of archived discussion · Replies are disabled