-
Notifications
You must be signed in to change notification settings - Fork 134
feat(heatmap): allow rotation of x axis labels #1514
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
41 commits
Select commit
Hold shift + click to select a range
7c08e5c
feat: allow rotation of x axis labels
rshen91 52c7a98
feat: add rotation to y axis label
rshen91 587c9db
Merge remote-tracking branch 'upstream/master' into heatmap-rotation-…
rshen91 6bd128a
feat: add overflow to config for truncation
rshen91 a156574
feat: implement overflow through config for user to set
rshen91 8eba89b
test: update story to show truncation
rshen91 985e299
feat: add alternating ability for x axis labels
rshen91 6a5671f
test: add vrts
rshen91 8287a2a
fix: code review
rshen91 a98d1c4
Merge remote-tracking branch 'upstream/master' into heatmap-rotation-…
rshen91 1f51475
test: update vrts
rshen91 d126289
Merge branch 'master' into pr/1514
markov00 63e40b2
Limit the rotation to [-90,+90] range and fix the alignment
markov00 4e7bf9b
Merge branch 'master' into pr/1514
markov00 1270693
Extend screenspace scale compressor to consider different left/right …
markov00 3061bda
Add 2dim vectors base operations
markov00 3a96395
Add optimal rect rotation fn
markov00 c88f9a2
Add transform for Vec2 array
markov00 8806f97
Compute axis space based on label rotations
markov00 a3a9d36
Remove alternate and rotation on y
markov00 628d6f3
Cleanup time axis
markov00 b227f04
Merge remote-tracking branch 'upstream/master' into pr/1514
markov00 4085b23
Render truncated text on x
markov00 6684c02
Reduce ticks on time axis
markov00 9710525
Reduce ticks on time scale
markov00 726485a
Merge branch 'master' into pr/1514
markov00 ea3fc48
Cleanu up APIs
markov00 3d9f2b9
Fix up commits
markov00 976b8d4
Move the theme constraints to chart theme selector
markov00 e5cbede
Fix test files
markov00 dcf27f6
Simplify x axis size code
markov00 401c3d8
Cleanup scale compressor code
markov00 b45f82a
Update VRTs and tests
markov00 6373d19
Remove unused fn
markov00 cccab73
Remove a test case in favour of showing the titles in an existing scr…
markov00 535a58c
Render x axis ticks as an extension of the gridline
markov00 57795ae
Consider the grid stroke width in the grid width/height calculation
markov00 ceab0e6
Force the rotation to a minimum optimized angle to avoid overlaps
markov00 a2d71ab
Move VR test and update screenshots
markov00 a5a92e5
Fix missing prop
markov00 9b8cd96
Merge branch 'master' into heatmap-rotation-labels
markov00 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
Binary file modified
BIN
+2.89 KB
(110%)
...ual-tests-for-all-stories-heatmap-alpha-basic-visually-looks-correct-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.57 KB
(100%)
...sts-for-all-stories-heatmap-alpha-categorical-visually-looks-correct-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+111 KB
...-for-all-stories-heatmap-alpha-label-rotation-visually-looks-correct-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+4.17 KB
(110%)
...l-tests-for-all-stories-heatmap-alpha-theming-visually-looks-correct-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-779 Bytes
(97%)
...tests-for-all-stories-heatmap-alpha-time-snap-visually-looks-correct-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+286 Bytes
(100%)
...sual-tests-for-all-stories-heatmap-alpha-time-visually-looks-correct-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+38.6 KB
...atmap-stories-test-ts-heatmap-stories-rotate-categorical-axis-labels-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+104 KB
...ts__/heatmap-stories-test-ts-heatmap-stories-rotate-time-axis-labels-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-6.24 KB
(83%)
...-stories-test-ts-heatmap-stories-should-maximize-the-label-font-size-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-16.3 KB
(58%)
...s-heatmap-stories-should-maximize-the-label-with-an-unique-font-size-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.63 KB
(110%)
...-test-ts-heatmap-stories-should-not-have-brush-tool-extend-into-axes-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+6.86 KB
(120%)
...tmap-stories-test-ts-heatmap-stories-should-show-x-and-y-axis-titles-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+4.67 KB
(110%)
...ories-test-ts-heatmap-stories-theme-dark-should-render-basic-heatmap-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+4.52 KB
(110%)
...-test-ts-heatmap-stories-theme-dark-should-render-correct-brush-area-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+5.75 KB
(110%)
...s-test-ts-heatmap-stories-theme-eui-dark-should-render-basic-heatmap-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+5.24 KB
(110%)
...t-ts-heatmap-stories-theme-eui-dark-should-render-correct-brush-area-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.66 KB
(110%)
...-test-ts-heatmap-stories-theme-eui-light-should-render-basic-heatmap-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+3.05 KB
(110%)
...-ts-heatmap-stories-theme-eui-light-should-render-correct-brush-area-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.89 KB
(110%)
...ries-test-ts-heatmap-stories-theme-light-should-render-basic-heatmap-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+3.17 KB
(110%)
...test-ts-heatmap-stories-theme-light-should-render-correct-brush-area-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.66 KB
(110%)
...s__/heatmap-stories-test-ts-heatmap-stories-time-snap-with-dataset-2-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-152 Bytes
(97%)
...s__/heatmap-stories-test-ts-heatmap-stories-time-snap-with-dataset-3-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+200 Bytes
(100%)
...s__/heatmap-stories-test-ts-heatmap-stories-time-snap-with-dataset-4-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-384 Bytes
(96%)
...s__/heatmap-stories-test-ts-heatmap-stories-time-snap-with-dataset-5-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-5.62 KB
(87%)
...s__/heatmap-stories-test-ts-heatmap-stories-time-snap-with-dataset-6-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+851 Bytes
(100%)
...s__/heatmap-stories-test-ts-heatmap-stories-time-snap-with-dataset-7-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+1.32 KB
(110%)
...s__/heatmap-stories-test-ts-heatmap-stories-time-snap-with-dataset-8-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+2.27 KB
(110%)
...s__/heatmap-stories-test-ts-heatmap-stories-time-snap-with-dataset-9-1-snap.png
Oops, something went wrong.
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
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.