plotly / plotly/react-plotly.js

onLegendClick gives wrong state

Aperta
#297 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Lingua principale
JavaScript
Stelle
1.1k
Fork
138
Merge medio
3g 2h
PR unite (30g)
4

Descrizione

Hi,
I've some wired problems when trying to work with the data from onLegendClick.
First example: The two data sources (Beningn, Others) don't have the same properties as the visible is missing in Benign.
CleanShot 2022-10-12 at 11 54 54
Only if the Benign property got clicked once the visible property get's added.

Second example: When I click the legend I always get the data from the second last render. Meaning if I've just clicked on the legend I'll get the data from the second last render instead of the actual current render data.

Thanks for the help!

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

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

Non vengono indicati file sorgente né test. Inizia riproducendo il problema con due origini dati e un gestore onLegendClick, quindi traccia come vengono prodotti i dati del callback tra i vari render. Il lavoro è concluso quando entrambe le origini hanno uno stato visibile coerente e il callback espone i dati del render corrente.

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

Valutazione

Stack tecnologico
javascript, react
Ambito
data-visualization, frontend
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
30/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.