`anchor: 'free'` breaks fixed range with multiple axes
Nessuno ha ancora preso questa issue.
- Lingua principale
- JavaScript
- Stelle
- 18.3k
- Fork
- 2k
- Merge medio
- 2g 12h
- PR unite (30g)
- 28
Descrizione
This issue is already described in detail in the plotly forum. Here is just a short summary:
On a scatter plot with multiple (three) axes/traces each axis should have a range with a dynamic (autorange) lower bound and a fixed upper bound like this:
var layout = {
// ...
yaxis: {
range: [null,200],
autorange: 'min'
},
// ...
For 3 traces/axes, this is not working as expected! A complete SSCCE is available on codepen. The example works fine for two traces, but once a third trace is enabled (uncomment line 10), the fixed range stops working and both ends are scaled dynamically.
This issue seems only to exist if anchor is set to free for the axes. However, when using multiple axes, the anchor has to be free for useful automatic axes-positioning.
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
Inizia con il CodePen SSCCE collegato e confronta il caso a due assi con quello a tre assi, concentrandoti sugli assi che usano anchor: 'free' e range: [null, 200] con autorange: 'min'. Il lavoro è completato quando il limite superiore fisso rimane effettivo mentre il limite inferiore resta dinamico per tutti e tre gli assi.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript
- Ambito
- data-visualization
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 38/100