-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Fix fill tozero with undefined value and overlaping of fill area #2979
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
Closed
ErwanMAS
wants to merge
22
commits into
plotly:master
from
ErwanMAS:bug_trace_filltozero_order_scattergl
Closed
Changes from 19 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
1c52fa6
Merge pull request #1 from plotly/master
ErwanMAS bdc94ce
Merge pull request #2 from plotly/master
ErwanMAS e69e2d6
Merge pull request #3 from plotly/master
ErwanMAS 52020a9
Fix https://codepen.io/erwanmas/pen/JaymVr
ErwanMAS 304083e
fix lint issues
ErwanMAS 05343b8
only one big mock for the 3 tests
ErwanMAS 51d6688
add simple shape for line in scattergl
ErwanMAS 831f508
add shape to scattergl
ErwanMAS 39eb303
remove some empty lines
ErwanMAS 283b50d
update of the baseline images
ErwanMAS 02e924c
we don't reuse scatter files ... because partialy impelemented
ErwanMAS a49e6d0
fix lint
ErwanMAS 5d3a924
- remove line_shape_defaults.js , moe the code into scattergl/default…
ErwanMAS f670af2
fix lint issues
ErwanMAS 93b61bc
- modify one test to add GL/REG version
ErwanMAS 346a32a
- remove some console.log
ErwanMAS 9cf7172
add baseline for the gl2d_order_error
ErwanMAS 987e6cd
fix lint issues
ErwanMAS 95c602e
last version , we display by order only .
ErwanMAS be43294
- fix gl2d_scatter_fill_self_next ( rollback the baselines test/image…
ErwanMAS 126e29c
fix lint issues
ErwanMAS 4b2b0d5
fix errors display ordering
ErwanMAS 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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,141 @@ | ||
{ | ||
"data": [ | ||
{ | ||
"x": [null, 3 , 3, null, null ], | ||
"y": [ 25,30,35,40 ,50 ], | ||
"type": "scattergl", | ||
"fill": "tozerox", | ||
"mode": "none", | ||
"showlegend": true, "xaxis": "x", "yaxis": "y" , | ||
"fillcolor": "#FF69B4", | ||
"line": { "color": "#FF69B4" } | ||
}, | ||
{ | ||
"x": [ null, null, null, 5, 5 ], | ||
"y": [ 25,30,35,40 ,50 ], | ||
"type": "scattergl", | ||
"fill": "tozerox", | ||
"mode": "markers+lines", | ||
"showlegend": true, "xaxis": "x", "yaxis": "y" , | ||
"fillcolor": "#202ff0", | ||
"line": { "color": "#101ff0" } | ||
}, | ||
{ | ||
"x": [null, 3 , 3, null, null ], | ||
"y": [ 25,30,35,40 ,50 ], | ||
"type": "scatter", | ||
"fill": "tozerox", | ||
"mode": "none", | ||
"showlegend": true, "xaxis": "x2", "yaxis": "y2" , | ||
"fillcolor": "#DD5792", | ||
"line": { "color": "#DD5792" } | ||
}, | ||
{ | ||
"x": [ null, null, null, 5, 5 ], | ||
"y": [ 25,30,35,40 ,50 ], | ||
"type": "scatter", | ||
"fill": "tozerox", | ||
"mode": "markers+lines", | ||
"showlegend": true, "xaxis": "x2", "yaxis": "y2" , | ||
"fillcolor": "#000fd0", | ||
"line": { "color": "#0000d0" } | ||
}, | ||
{ | ||
"x": [ 1, 2, 3, 4, 5 ], | ||
"y": [ null, 50, 50,null ,null ], | ||
"type": "scattergl", | ||
"fill": "tozeroy", | ||
"mode": "none", | ||
"showlegend": true, "xaxis": "x3", "yaxis": "y3" , | ||
"fillcolor": "#80aa70", | ||
"line": { "color": "#80aa70" } | ||
}, | ||
{ | ||
"x": [ 1, 2, 3, 4, 5 ], | ||
"y": [null ,null ,null , 50, 50 ], | ||
"type": "scattergl", | ||
"fill": "tozeroy", | ||
"mode": "markers+lines", | ||
"showlegend": true, "xaxis": "x3", "yaxis": "y3" , | ||
"fillcolor": "#f09090", | ||
"line": { "color": "#e0b0b0" } | ||
}, | ||
{ | ||
"x": [ 1, 2, 3, 4, 5 ], | ||
"y": [ null, 50, 50,null ,null ], | ||
"type": "scatter", | ||
"fill": "tozeroy", | ||
"mode": "none", | ||
"showlegend": true, "xaxis": "x4", "yaxis": "y4" , | ||
"fillcolor": "#608a50", | ||
"line": { "color": "#608a50" } | ||
}, | ||
{ | ||
"x": [ 1, 2, 3, 4, 5 ], | ||
"y": [null ,null ,null , 50, 50 ], | ||
"type": "scatter", | ||
"fill": "tozeroy", | ||
"mode": "markers+lines", | ||
"showlegend": true, "xaxis": "x4", "yaxis": "y4" , | ||
"fillcolor": "#e07070", | ||
"line": { "color": "#c09090" } | ||
}, | ||
{ | ||
"x": [ 1, 1, 2, 3, 4, 5,5 ], | ||
"y": [ 0,25,25,25,25,25,0 ], | ||
"type": "scattergl", | ||
"fill": "tozeroy", | ||
"mode": "markers+lines", | ||
"showlegend": true, "xaxis": "x5", "yaxis": "y5" , | ||
"fillcolor": "#f02f20", | ||
"line": { "color": "#f01f10" } | ||
}, | ||
{ | ||
"x": [ 1, 2, 2, 3, 4, 4,5 ], | ||
"y": [ 0, 0,50,50,50, 0,0 ], | ||
"type": "scattergl", | ||
"fill": "tozeroy", | ||
"mode": "none", | ||
"showlegend": true, "xaxis": "x5", "yaxis": "y5" , | ||
"fillcolor": "#90ff70", | ||
"line": { "color": "#90ff70" } | ||
}, | ||
{ | ||
"x": [ 1, 1, 2, 3, 4, 5,5 ], | ||
"y": [ 0,25,25,25,25,25,0 ], | ||
"type": "scatter", | ||
"fill": "tozeroy", | ||
"mode": "markers+lines", | ||
"showlegend": true, "xaxis": "x6", "yaxis": "y6" , | ||
"fillcolor": "#d00f00", | ||
"line": { "color": "#d00000" } | ||
}, | ||
{ | ||
"x": [ 1, 2, 2, 3, 4, 4,5 ], | ||
"y": [ 0, 0,50,50,50, 0,0 ], | ||
"type": "scatter", | ||
"fill": "tozeroy", | ||
"mode": "none", | ||
"showlegend": true, "xaxis": "x6", "yaxis": "y6" , | ||
"fillcolor": "#70df50", | ||
"line": { "color": "#70df50" } | ||
} | ||
], | ||
"layout": { | ||
"width": 800,"height": 800, | ||
"margin": {"l": 60, "r": 60, "t": 60, "b": 60}, | ||
"grid": {"columns": 2, "rows": 3, "pattern": "independent", "roworder": "bottom to top"} , | ||
"xaxis" : { "title": "GL" , "type": "linear", "rangemode": "tozero", "nticks": 3 }, | ||
"xaxis2": { "title": "" , "type": "linear", "rangemode": "tozero", "nticks": 3 }, | ||
"xaxis3": { "title": "GL" , "type": "linear", "rangemode": "tozero", "nticks": 3 }, | ||
"xaxis4": { "title": "" , "type": "linear", "rangemode": "tozero", "nticks": 3 }, | ||
"xaxis5": { "title": "GL" , "type": "linear", "rangemode": "tozero", "nticks": 3 }, | ||
"xaxis6": { "title": "" , "type": "linear", "rangemode": "tozero", "nticks": 3 }, | ||
"yaxis" : { "title": "" , "type": "linear", "range": [0,60], "nticks": 3 }, | ||
"yaxis2": { "title": "" , "type": "linear", "range": [0,60], "nticks": 3 }, | ||
"yaxis3": { "title": "" , "type": "linear", "range": [0,60], "nticks": 3 }, | ||
"yaxis4": { "title": "" , "type": "linear", "range": [0,60], "nticks": 3 }, | ||
"yaxis5": { "title": "" , "type": "linear", "range": [0,60], "nticks": 3 }, | ||
"yaxis6": { "title": "" , "type": "linear", "range": [0,60], "nticks": 3 } | ||
} | ||
} |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm. Looks like this broke the
gl2d_scatter_fill_self_next
mock:The first two traces have
fill: 'tonext'
meaning their fills should be behind both thedata[0]
anddata[1]
markers. See corresponding SVG structure:available here -> https://rreusser.github.io/plotly-mock-viewer/#scatter_fill_self_next
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i pushed a new version .