plotly / plotly/plotly.py

Sunburst can only have visibility toggled for the whole chart in a button's update method

Offen
#5,353 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

bug P2
Vorherrschende Sprache
Python
Sterne
18.8k
Forks
2.8k
Ø Merge
16 Std. 26 Min.
Gemergte PRs (30 T.)
21

Beschreibung

Using a button to toggle series of data for plots makes sense.

My use case for Sunburst (and Treemap and Icicle views on the same data) could do with having the ability to selective toggle visibility at the box/sector level. I have several categories, one of which swamps the others but is less important, so being able to toggle its children off would allow more screen real estate to be available for other sectors without having to resort to drawing two separate charts, one with the swamp and one without.

I had a button update method toggling visibility working, but only index 0 had any effect, and that surprised me by toggling the whole chart. I had expected that, for example, toggling index 42 would turn off that sector and its children. I presume from this that the whole chart is seen internally a single series?

Could the button update method be specialized for Sunburst et al. to allow toggling individual boxes and their children?

I'm using Plotly 6.3.0 with Python 3.13 on Linux.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne damit, das Verhalten in Plotly 6.3.0 mit Python 3.13 unter Linux zu reproduzieren, wobei der Fokus auf der update-Methode eines Buttons für Sunburst liegt, und vergleiche anschließend dieselben Daten in den Treemap- und Icicle-Ansichten. Verfolge, wie index 0 und index 42 interpretiert werden; abgeschlossen ist die Arbeit, wenn ein ausgewählter Sektor oder eine ausgewählte Box und deren Kinder ausgeblendet werden können, ohne das gesamte Diagramm auszublenden.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
python
Bereich
data-visualization
Issue-Typ
Feature
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

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