Auto-hide all legend entries

I’ve produced a hvPlot figure with a large number of time-series (~250). It’s silly and memory-intensive to plot them all at once, so I’d like to also have all lines automatically hidden (not muted), and click on them to reveal them.

This would be convenient because I could then use the legend to choose which ones to inspect.

Is there a way to do this with bokeh or hvPlot? I’ve only found legend_muted=True in hvPlot and p.legend.click_policy='hide' in bokeh, both of which don’t provide the required behaviour.

Individual glyph renderers have a visible property that can be set to False. See

Styling visual attributes — Bokeh 2.4.2 Documentation