Legend group click handling

Hi,

For as long as I remember, placing plot legends into legendgroup caused clicking on any single legend in a group (or its title) to hide/show as a group.
Then with 5.3 it became possible to toggle a single item even when in a legendgroup - as explained and illustrated in Legends in Python >

Now, is it possible to have the following behaviour?

  • when clicking on a sub-item → toggle that item
  • when clicking on the group title → toggle the whole group

That would bring the best of both worlds, in my view…

That’s an interesting idea, @Wabiloo
Would you like to add it to Plotly Github, as a new issue?

Done: New legend_groupclick option to mix toggle item and group · Issue #5432 · plotly/plotly.py · GitHub