[BUG]: `axis.layer` / `axis.zerolinelayer`: `'above traces'` do not render above `scattergl` traces
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 55/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- javascript
- Bereich
- data-visualization
Rechercherichtung
Start by running the linked CodePen reproductions and tracing how scattergl rendering interacts with the Cartesian axis and zeroline layer settings. Done means zerolinelayer: 'above traces' visibly places the zeroline above scattergl markers, while the documented behavior remains correct for the line-chart example.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Description:
For Cartesian axes/subplots (for example, those containing scatter traces),
the reference documentation states that:
Parent: layout.xaxis
Type: enumerated , one of ( "above traces" | "below traces" )
Default: "above traces"
Sets the layer on which this axis is displayed. If "above traces", this axis is displayed above all the subplot's traces If "below traces", this axis is displayed below all the subplot's traces, but above the grid lines. Useful when used together with scatter-like traces withcliponaxisset to "false" to show markers and/or text nodes above this axis.
Parent: layout.xaxis
Type: enumerated , one of ( "above traces" | "below traces" )
Default: "below traces"
Sets the layer on which this zeroline is displayed. If "above traces", this zeroline is displayed above all the subplot's traces If "below traces", this zeroline is displayed below all the subplot's traces, but above the grid lines. Limitation: "zerolinelayer" currently has no effect if the "zorder" property is set on any trace.
However, this does not work for scattergl.
A WebGL marker remains visually above the zeroline (y = 0) even when:
yaxis: {
zerolinelayer: 'above traces'
}
is set.
Reproducible example:
https://codepen.io/Lexachoc/pen/xbqdWqm
https://codepen.io/Lexachoc/pen/EaWmLKY (line chart)
Relationship to cliponaxis:
This is separate from the feature request in #8074.
cliponaxis controls whether markers/text are clipped to the subplot's plotting area.
axis.layer / axis.zerolinelayer, on the other hand, control the stacking order of the axis / zeroline relative to traces.
Effect of axis.layer / axis.zerolinelayer: 'above traces':
Effect of axis.layer / axis.zerolinelayer: 'above traces' for line chart (the red line should not be seen):
Effect of cliponaxis: false:
- Vorherrschende Sprache
- JavaScript
- Sterne
- 18.3k
- Forks
- 2k
- Ø Merge
- 1 T. 19 Std.
- Gemergte PRs (30 T.)
- 21
Entwicklungsumgebung
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus plotly/plotly.js
-
bug
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 85/100
Maintainer antworten meist innerhalb von 1 Tag
-
chore P3 plotly-internal size: 3 task
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 77/100
Maintainer antworten meist innerhalb von 1 Tag
-
chore P1 plotly-internal size: 1 task
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 82/100
Maintainer antworten meist innerhalb von 1 Tag
-
chore P3 plotly-internal size: 1 task
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
plotly/plotly.js#7648 · 3 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in plotly/plotly.js
Ähnliche Issues
-
bug CI breakage triage needed
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
oppia/oppia#27517 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
draftomen enhancement size: S
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
andreagrandi/draftomen#761 ·
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 92/100
HarperFast/harper#2866 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
HarperFast/harper-pro#927 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
anthropics/skills#1897 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag