☰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

How to set the initial state of a legend to be hidden?

Community Supportbokeh
fasion07
fasion07

I have added legends to many of my plots, and now I want some of them to be initially hidden when I open the HTML file. I would like to show them by clicking on the corresponding legend when I want to see them.

⌁   Link to post
Bryan
Bryan

Do you mean legend items? The legend is the entire thing, a collection of individual legend items. It’s not clear what you are asking to do. Annotated screenshots would probably help immensely to clarify and remove ambiguity.

⌁   Link to post

End of archived discussion · Replies are disabled