Combine legend group + legend item toggle

I wonder if plotly has the feature to toggle all traces within legend group by clicking the group title and simultaneously toggling individual traces by clicking their legend entries.
It was mentioned e. g. here here
I’ve been playing with the clickmode and itemclick parameters but could not get it working like that.
Thank you!


example situation, I can toggle whole legend group, but not individual traces, or vice versa.

2 Likes

legend_groupclick="toggleitem" only supports toggling the individual legend items. You can’t (as the OP requested), click on the title of the legend group to toggle all items within the group. Ideally we’d have the option to click on the group title to toggle all items within the group BUT ALSO click on the individual items to toggle the item independently of the rest of the group.

2 Likes

Yes I noticed this too. Would love this feature as well.