-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Introduce cartesian axis breaks #4614
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 11 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
4f6ea7e
introduce axis breaks attributes
etpinard e9cfe04
add axis breaks default logic
etpinard baf753a
add ax.maskBreaks method
etpinard 259eafa
implement axis breaks setConvert logic
etpinard eca3da7
adapt autorange routine for axis breaks
etpinard 6bec94d
adapt calcTicks for axis breaks
etpinard fe80cad
adapt dragbox logic for axis breaks
etpinard d425373
do not show zeroline when it falls inside an axis break
etpinard 5f2fbe0
add axis breaks mocks
etpinard b5aaf92
add TODO for better "first tick" algo on date axes
etpinard 187c93a
fix typo in comment
etpinard ebca01b
fix axis breaks + rangeslider behavior
etpinard 3957d95
during l2p(v) when v falls into breaks, pick offset closest to it
etpinard 76a265e
fix typo in break `bounds` description
etpinard e00af90
Handle breaks on date axes only for now
etpinard 53196e5
simplify logic - breaks are on date axes only
archmoj 493bb4e
Handle axis breaks on reversed ranges
etpinard 7080f90
replace 'spread' -> 'size' in attr descriptions
etpinard dcceb76
fix %H maskBreaks for values greater but on the same hour
etpinard 28c328d
increase dtick on axes with breaks ...
etpinard 432f0d0
Merge branch 'master' into axis-breaks
etpinard 40d57fa
fix scale when panning on breaks
archmoj 1b55b42
fix 'increase dtick' lgoic for cases with dtick value starting 'M'
etpinard 49b4053
set scattergl and splom traces to visible:false on axis with breaks
etpinard 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
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.
What about handling
autorange: 'reversed'
case?In the following demos I tried to flip the axes which it didn't work.
https://codepen.io/MojtabaSamimi/pen/yLNzLra?editors=0010
https://codepen.io/MojtabaSamimi/pen/bGdoGyG?editors=0010
https://codepen.io/MojtabaSamimi/pen/QWbqWRj?editors=0010
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.
Ah right, I forgot to test those. They won't be handled here as this logic has to do with set (i.e.
autorange: false
) ranges, but yeah I'll get this fixed. Thanks!