Inconsistent EventData for axis range
Nessuno ha ancora preso questa issue.
- Lingua principale
- JavaScript
- Stelle
- 18.3k
- Fork
- 2k
- Merge medio
- 2g 12h
- PR unite (30g)
- 28
Descrizione
Version used: plotly.js (basic) v1.28.3
I am registered to the event "plotly_relayout".
I am using a chart with one trace and a rangeslider.
When zooming / panning on the trace, the following eventData is emitted to my callback:
Object {xaxis.range[0]: "2017-04-25 02:03:12.3635", xaxis.range[1]: "2017-05-24 12:21:05.5226"}
When panning on the rangeslider the follwoing eventData is emitted to my callback:
Object {xaxis.range: Array[2]}
And the array contains:
["2017-05-16 11:13:38.5694", "2017-06-14 21:31:31.7285"]
The plotly documentation shows that you are supposed to access the eventData axis information like this:
eventdata['xaxis.range[0]']
this only works for the first object, not the one emitted when using the rangeslider.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Riprodurre il report con plotly.js v1.28.3 usando un trace, un rangeslider e un callback plotly_relayout. Confrontare eventData dallo zoom o dal pan del trace con eventData dal pan del rangeslider; completato quando il payload dell’intervallo dell’asse è coerente con il pattern di accesso documentato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript
- 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
- 35/100