New legend_groupclick option to mix toggle item and group
Abierto
@alexshoe ya está trabajando en esto.
Desde el 26/11/2025.
- Lenguaje dominante
- Python
- Estrellas
- 18.8k
- Forks
- 2.8k
- Merge medio
- 16 h 26 min
- PR fusionados (30 d)
- 21
Descripción
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 https://plotly.com/python/legend/#group-click-toggle-behavior
fig.update_layout(legend=dict(groupclick="toggleitem"))
Now, I would love it if Plotly could offer the following "mixed" 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…
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Evaluación
Este issue todavía no se ha evaluado.