You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add zorder attribute to control stacking order of SVG traces drawn into cartesian subplots - #6918
@emilykl@Farkites Right now on the master branch no traces are drawn inside overlayed subplot. Instead those overlayed traces are drawn inside a layer called overplot
So it looks like handling the case of overlayed axes in this PR is possible with some minor changes 🤞
The issue is that the overplot layer is drawn after the plot layer which contains the main plot. So the trace with the main axis has always have the lowest zindex for the plot to be correct.
@emilykl@Farkites Right now on the master branch no traces are drawn inside overlayed subplot. Instead those overlayed traces are drawn inside a layer called overplot
So it looks like handling the case of overlayed axes in this PR is possible with some minor changes 🤞
The issue is that the overplot layer is drawn after the plot layer which contains the main plot. So the trace with the main axis has always have the lowest zindex for the plot to be correct.
It looks like for traces in overlayed subplots we could default zindex to be greater than the maximum of all zindex values in the overlaying subplot.
Then we should be able to draw them in the main subplot instead of overplot one. No?
What is the desirable behavior when hovering over overlapping points?
For example in the following case if I hover over the first point at position y: 0 I get the info for the orange trace not the blue one which is placed on top.
archmoj
changed the title
Add z-index stacking attribute to cartesian SVG traces
Add zorder attribute to control stacking order of SVG traces drawn into cartesian subplots
Apr 9, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What's new
zindexto SVG Cartesian traceszindexvalues are drawn in front of traces with lowerzindexvaluesCodepen
Screenshots:
TO DO: