-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Add zorder
attribute to control stacking order of SVG traces drawn into cartesian subplots
#6918
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
49 commits
Select commit
Hold shift + click to select a range
df9361c
zindex first pass. scatter and bar traces only
emilykl 176f922
Ensure zindex is compared by trace
Farkites 7a5cdac
Add zindex basic baseline
Farkites 1a24eaa
update plot-schema diff
Farkites 5dcf623
Add zindex to image
Farkites e17739e
Add zindex to all cartesian traces
Farkites dbbb0d5
Update schema
Farkites cc2fc92
Fix scattergl zindex
Farkites 6639de5
Add baseline /zindex-scatter-image.png
Farkites ac0a2a3
Restore dist
Farkites 497b5f1
Remove scattergl zindex
Farkites 071ac98
Remove coerce zindex from scattergl
Farkites a141e00
Remove zindex from funnelarea
Farkites cec8d65
Remove zindex from funnelarea
Farkites abfd1a8
Add zindex for ohlc
Farkites c1bfd61
Add mocks for zindex
Farkites 32659ae
Add baselines
Farkites b758267
Fix zindex_violin_box mock
Farkites e368849
Add draftlog
Farkites 85edbdf
Define zindex in scatter attributes
Farkites c422f53
Use Lib.sorterAsc for zindices
Farkites e5003c6
Handle zindex undefined in sort
Farkites 4edefbd
Update draftlog
Farkites 21a0ac1
Update description
Farkites ff01eb6
Update zindex-scatter-image mock
Farkites e92b6cd
Add mocks for zindex in histogram, heatmap, and contour traces
Farkites 9e134e8
Add zindex to histogram traces
Farkites 23368c9
Fix zindex routing in attributes
Farkites ef4d489
Update zindex description
Farkites edfefcd
Add baselines for zindex image, contour, heatmap, and histogram mocks
Farkites 1ebbf61
Change zindex editType to 'plot'
Farkites 9c1db37
Add zindex to funnel_axis_with_other_traces mock
Farkites d4b4c0a
Add new baseline for funnel_axis_with_other_traces
Farkites fe2f9d1
Update plot-schema
Farkites f9f7892
Fix funnel_axis_with_other_traces baseline
Farkites 75cfb64
Remove zindex_histogram mock and baseline
Farkites 670b55b
Reduce width and height of zindex mocks
Farkites c061a92
Update zindex baselines
Farkites 27f51ec
Add Jasmine tests for zindex
Farkites 17ffddb
Merge branch 'master' into trace-zindex
Farkites b76e894
Add jasmine test for clearing and adding zindex traces
Farkites c2c268c
Add select tests for zindex traces
Farkites 4a1901c
Change naming of layers with zindex
Farkites 7e2acfb
Remove focus in tests
Farkites 1208283
Add zindex tests for bar traces
Farkites a9493d4
Fix index of layer names for negative zindex
Farkites eabedd8
Add overlaying bar traces to zindex_basic mock
Farkites 2391afd
Extend zindex test to waterfall and funnel traces
Farkites efcd49f
rename zindex to zorder
archmoj File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
- Add a new attribute `zorder` to SVG based Cartesian traces (not to WebGL traces). Traces with higher `zorder` values are drawn in front of traces with lower `zorder` values. This feature was anonymously sponsored: thank you to our sponsor! |
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -248,5 +248,7 @@ module.exports = { | |
|
||
_deprecated: { | ||
bardir: barAttrs._deprecated.bardir | ||
} | ||
}, | ||
|
||
zorder: barAttrs.zorder | ||
}; |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -133,4 +133,6 @@ module.exports = { | |
].join(' ') | ||
} | ||
}), | ||
|
||
zorder: scatterAttrs.zorder | ||
}; |
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.