plotly.py icon indicating copy to clipboard operation
plotly.py copied to clipboard

enable toggling of separated traces and groups at the same time

Open Taldariner opened this issue 1 year ago • 1 comments

Description

Currently, Plotly gives you the option to customize the legend to either disable only the corresponding trace when you click on it, or the whole group at once with figure parameters groupclick="toggleitem" and groupclick="togglegroup". There is no convenient way to set both types of switching at once. For example, when you click on the name of a group in the legend to toggle all items in it, and if you click on a specific item to toggle only that item. It would be great to have such a feature, as it is extremely useful for cases with big amount of traces in one group.

Taldariner avatar Jul 01 '24 07:07 Taldariner

UPD. Looks like Plotly already have some functionality for this - double-clicking on any trace in legend change the state of all traces, and leave only clicked visible. But it is not stated clearly in documentation, so it also would be nice to outline it in the same paragraph, where groupclick parameter is described.

Taldariner avatar Jul 22 '24 11:07 Taldariner