plotly / plotly/dash

Performance issue with live updates

Aperta
#699 3 commenti 2 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

P3 performance
Lingua principale
Python
Stelle
24.4k
Fork
2.3k
Merge medio
2g 7h
PR unite (30g)
13

Descrizione

Dear all,

I have noticed a performance limitation of the updated graphs when I try to implement the live updates (https://dash.plot.ly/live-updates) tutorial.

I implemented the tutorial example without changes and it works as expected, however I noticed that if I increase the number of data points the traces on the dashboard cease to display (axis is rendered but no lines/markers are visible) when the number of points is greater than approximately 2000 (I used trial and error to find values that worked).

I tried changing the figure ‘type’ parameter to ‘scattergl’, but this was ineffective. This behaviour is observed in Chrome, Firefox and internet explorer.

If I increase the update interval time to e.g 5 seconds, I can plot 10,000 data points, but this is not very satisfactory as I am trying to base my own application on this approach but I need to plot e.g 24 hours worth of data at 1 second intervals, refreshing the graph with new data every 1-2 seconds.

Is this performance limitation expected and is there a way to improve this performance?

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

Usa il tutorial di Dash sugli aggiornamenti in tempo reale collegato nel report come punto di partenza per la riproduzione. Varia il numero di punti dati e l’intervallo di aggiornamento in Chrome, Firefox e Internet Explorer, incluso il tentativo scattergl segnalato; il lavoro è completato quando le tracce mancanti con intervalli di aggiornamento di 1–2 secondi vengono spiegate o risolte, oppure viene documentato il limite supportato.

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

Valutazione

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

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.