holoviews icon indicating copy to clipboard operation
holoviews copied to clipboard

Missing documentation on `legend_opts`

Open asmith26 opened this issue 2 years ago • 2 comments

Hi there,

I recently had a problem using hvplot's hover_cols functionality, where when overlaying multiple plots the hover_cols info boxes were hiding each other. I managed to solve this thanks to the wonderful HoloViz community: https://discourse.holoviz.org/t/is-it-possible-to-change-hvplots-hover-position/6631/7

The fix involved adding .opts(legend_opts={"click_policy": "hide"}), but when I try to search and read up more on this functionality, unfortunately I can't find any docs/examples - not sure if I'm missing something, or possibly this doc is missing?

Many thanks for any help. and this amazing lib!

  • [x] I may be interested in making a pull request to address this

asmith26 avatar Dec 21 '23 23:12 asmith26

Hi @asmith26 and thanks for opening this issue. I think Andrew actually suggested you to open an issue on HoloViews' tracker, since legend_opts isn't documented on HoloViews' website.

maximlt avatar Dec 21 '23 23:12 maximlt

A good place for it is https://holoviews.org/user_guide/Customizing_Plots.html#legend-customization which can be found in https://github.com/holoviz/holoviews/blob/main/examples/user_guide/Customizing_Plots.ipynb

hoxbro avatar Dec 22 '23 07:12 hoxbro