-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
sort categorical Cartesian axes by value #3864
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
13 commits
Select commit
Hold shift + click to select a range
9c09d8c
sort categorical Cartesian axes by value
antoinerg 2d379f7
sort categories by values: improve code style
antoinerg e4e5eaa
sort categories by values: fix mock syntax
antoinerg 76683ba
sort categories by values: add support for histogram2dcontour
antoinerg fac239b
sort categories by values: improve splom logic
antoinerg 67cc14d
sort categories by values: implement mean and median
antoinerg c6e049b
implement Lib.median()
antoinerg 7c8d52b
sort categories by values: use Lib.median()
antoinerg 54b3ff9
Lib.median(): reuse existing Lib.interp()
antoinerg 9aaa10b
categoryorder: rename 'value' to 'total'
antoinerg 553e193
sort categories by values: update mocks
antoinerg bf6bdf3
sort categories by values: handle asymmetric splom
antoinerg d13542e
sort categories by values: deal with 2dMap in its own conditional block
antoinerg 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
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
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,39 @@ | ||
{ | ||
"data": [{ | ||
"x": ["a", "b", "c", "a", "b", "d", "b", "c", "b", "b"], | ||
"type": "histogram" | ||
}, | ||
{ | ||
"x": ["d", "c", "a", "e", "a"], | ||
"type": "histogram" | ||
}, | ||
{ | ||
"y": ["a", "b", "c", "a", "b", "d", "b", "c"], | ||
"type": "histogram", | ||
"xaxis": "x2", | ||
"yaxis": "y2" | ||
}, | ||
{ | ||
"y": ["d", "c", "b", "a", "e", "a", "b"], | ||
"type": "histogram", | ||
"xaxis": "x2", | ||
"yaxis": "y2" | ||
}], | ||
"layout": { | ||
"title": "categoryorder: \"total ascending\"", | ||
"height": 400, | ||
"width": 600, | ||
"barmode": "stack", | ||
"xaxis": { | ||
"domain": [0, 0.45], | ||
"categoryorder": "total ascending" | ||
}, | ||
"xaxis2": { | ||
"domain": [0.55, 1] | ||
}, | ||
"yaxis2": { | ||
"anchor": "x2", | ||
"categoryorder": "total ascending" | ||
} | ||
} | ||
} |
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.