Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

New legend_groupclick option to mix toggle item and group

Offen
#5,432 4 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@alexshoe arbeitet bereits daran.

Seit 26.11.2025.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Beschreibung

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…

Vorherrschende Sprache
Python
Sterne
18.8k
Forks
2.8k
Ø Merge
13 Std. 28 Min.
Gemergte PRs (30 T.)
20

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus plotly/plotly.py

Alle Issues in plotly/plotly.py

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.