-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Layout grids #2399
Merged
Merged
Layout grids #2399
Changes from 1 commit
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
001bd9b
rm ignored attr in grouped_bar mock
alexcjohnson 606a601
get tests running again on AJ's machine
alexcjohnson f01db07
generalize info_array to 2D and arb. length
alexcjohnson 82fbae2
layout.grid
alexcjohnson cd6e823
catch promise errors in parcoords_test
alexcjohnson 1aec7f7
clean up parcoords handling of uneven and missing arrays
alexcjohnson 446f9f9
try marking the test that's failing on CI only as flaky
alexcjohnson 40dd784
validate info_array, make grid defaults work better with validate
alexcjohnson 670bdd5
:hocho: grid.gap
alexcjohnson 6b8d461
drop domain and grid editTypes from calc to plot
alexcjohnson 4b43e35
row and column default to 0 in domain attrs
alexcjohnson 794669b
default subplot row/column test
alexcjohnson 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 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 |
---|---|---|
|
@@ -76,6 +76,7 @@ exports.attributes = function(opts, extra) { | |
out.row = { | ||
valType: 'integer', | ||
min: 0, | ||
dflt: 0, | ||
role: 'info', | ||
editType: opts.editType, | ||
description: [ | ||
|
@@ -90,6 +91,7 @@ exports.attributes = function(opts, extra) { | |
out.column = { | ||
valType: 'integer', | ||
min: 0, | ||
dflt: 0, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Great. Can we 🔒 this down in a jasmine test? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. good call -> 794669b |
||
role: 'info', | ||
editType: opts.editType, | ||
description: [ | ||
|
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.
Two suggestions:
dflt: 0
, so thatdomain: {column: 2}
defaults to subplotxy2
?domain: {row: ''}
to match the 'x'/'x2'/'x3' counterThere 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.
Yeah, makes sense - if you have a grid, by default all subplots should go in it. You can always set explicit
domain.x
anddomain.y
anyhow, this is only setting the defaults for those attributes -> 4b43e35There 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.
As discussed offline, I omitted this one (though if you say
''
you'll get0
now anyway with the change ^^ so the result is the same)