Issue with axis autorange: state self-mutates 'reversed' -> true
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 45/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- javascript, react
- Ambito
- data-visualization, frontend
Direzione di ricerca
Riproduci le due transizioni di autorange descritte nell’issue, concentrandoti sulla gestione dello stato dell’asse di Plotly da parte del componente React. Il lavoro è completato quando la modifica da true a 'reversed' conserva quel valore, così che una successiva modifica di nuovo a true attivi l’inversione senza un false intermedio.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
As far as I understand, Plotly's axis reversal works by setting autorange to a string value of 'reversed' (with the other options being true for non-reversed autorange, and false for no autorange). After setting this, Plotly will autoscale the axis with range[0] and range[1] of the axis swapped.
The problem is, it seems like after setting autorange -> 'reversed', react-plotly mutates autorange back to true after doing the range reversal. So, there is no way to un-reverse the autorange without setting it first to false, then true.
What I think should happen:
Step 1: autorange true -> 'reversed'
Step 2: autorange 'reversed' -> true //can toggle axis reversal
What actually happens:
Step 1: autorange true -> 'reversed' -> true //last step being done automatically by react-plotly
Step 2: autorange true -> true //doesn't toggle axis reversal b/c no state change
- Lingua principale
- JavaScript
- Stelle
- 1.1k
- Fork
- 138
- Merge medio
- 3g 2h
- PR unite (30g)
- 4
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
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.
Altre issue di plotly/react-plotly.js
-
P3 plotly-internal size: 1 task
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
plotly/react-plotly.js#386 ·
-
enhancement P3 size: 1
Difficoltà 3/5 1-2 giorni Idoneità per principianti 65/100
plotly/react-plotly.js#380 · 7 commenti ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
plotly/react-plotly.js#358 · 1 commento ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
plotly/react-plotly.js#354 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 30/100
plotly/react-plotly.js#353 · 1 commento ·
Tutte le issue di plotly/react-plotly.js
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
avniproject/avni-client#2135 ·
-
automated broken-link
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
-
agent/security hive/hosted-available-lke648397-260827-5n31 security
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
babalae/bettergi-scripts-list#3674 ·
-
A-Release-Notes C-Editing D-Modest S-Ready-For-Implementation
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
bevyengine/bevy-website#2595 ·