plotly / plotly/plotly.py

Sunburst plot not rendering without any error or warning message

Aperta
#4,418 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

bug P3
Lingua principale
Python
Stelle
18.8k
Fork
2.8k
Merge medio
16h 26m
PR unite (30g)
21

Descrizione

I am trying the basic sunburst plot as given here:

import plotly.express as px
data = dict(
    character=["Eve", "Cain", "Seth", "Enos", "Noam", "Abel", "Awan", "Enoch", "Azura"],
    parent=["", "Eve", "Eve", "Seth", "Seth", "Eve", "Eve", "Awan", "Eve" ],
    value=[10, 14, 12, 10, 2, 6, 6, 4, 4])

fig = px.sunburst(
    data,
    names='character',
    parents='parent',
    values='value',
)
fig.show()

when I replace the data with the following:

['', 'Is', 'it', 'okay', 'to', 'Can', 'I', 'use', 'a', 'Show', 'me', 'how', 'to', 'do', 'this', 'skip', 'adding']
['', '', 'Is', 'it', 'okay', '', 'Can', 'I', 'use', '', 'Show', 'me', 'how', 'I', 'do', 'I', 'skip']
[0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]

it works fine. But when I add only one more datapoint:

['', 'Is', 'it', 'okay', 'to', 'Can', 'I', 'use', 'a', 'Show', 'me', 'how', 'to', 'do', 'this', 'skip', 'adding', 'I', 'step']
['', '', 'Is', 'it', 'okay', '', 'Can', 'I', 'use', '', 'Show', 'me', 'how', 'I', 'do', 'I', 'skip', '', 'this']
[0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]

there is no output. I do not see any warning or error message.

What can be the issue? And if so, there should be some error message raised.

Versions:

Python=3.11.4
Plotly=5.18.0
Pandas=2.1.2

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Esegui le due riproduzioni px.sunburst fornite con Python 3.11.4, Plotly 5.18.0 e Pandas 2.1.2, confrontando gli input a 17 e 19 punti. Traccia il percorso di rendering di sunburst a partire da fig.show() e determina perché l'input più grande non produce alcun output; il lavoro è completato quando il caso viene sottoposto a rendering o segnala un errore chiaro, con la copertura della riproduzione.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
python
Ambito
data-visualization
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
42/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.