-
Notifications
You must be signed in to change notification settings - Fork 120
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
fix(legend): legend sizes with ordinal data #867
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
a054fdc
fix: fix sizing for showLegendExtra and ordinal xScale
rshen91 56676aa
Merge remote-tracking branch 'upstream/master' into legend-sizing
rshen91 24d6e44
fix: add internal flag to fix api extractor failures
rshen91 c9ca6a4
Merge remote-tracking branch 'upstream/master' into legend-sizing
rshen91 6b57387
test: refactoring tests and mixed chart fixed story
rshen91 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
-207 Bytes
(99%)
...-all-stories-axes-different-tooltip-formatter-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 Bytes
(100%)
...s-for-all-stories-bar-chart-bar-chart-1-y-0-g-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
+99 Bytes
(100%)
...s-for-all-stories-bar-chart-bar-chart-1-y-1-g-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
-134 Bytes
(99%)
...s-for-all-stories-bar-chart-bar-chart-2-y-0-g-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
-45 Bytes
(100%)
...s-for-all-stories-bar-chart-bar-chart-2-y-1-g-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
-76 Bytes
(100%)
...s-for-all-stories-bar-chart-order-bins-by-sum-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 removed
BIN
-19.7 KB
...-for-all-stories-bar-chart-simple-value-label-visually-looks-correct-1-snap.png
Binary file not shown.
Binary file removed
BIN
-19.7 KB
...s-for-all-stories-bar-chart-simple-valuelabel-visually-looks-correct-1-snap.png
Binary file not shown.
Binary file modified
BIN
-21 Bytes
(100%)
...l-stories-bar-chart-with-value-label-advanced-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
-24 Bytes
(100%)
...ts-for-all-stories-bar-chart-with-value-label-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
-10 Bytes
(100%)
...-stories-rotations-negative-90-degree-ordinal-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
+0 Bytes
(100%)
...all-stories-rotations-rotations-0-deg-ordinal-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
-19 Bytes
(100%)
...l-stories-rotations-rotations-180-deg-ordinal-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
-6 Bytes
(100%)
...ll-stories-rotations-rotations-90-deg-ordinal-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
+14 Bytes
(100%)
...s-for-all-stories-rotations-with-ordinal-axis-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
-1.04 KB
(97%)
...ll-stories-stylings-area-series-color-variant-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
-192 Bytes
(99%)
...all-stories-stylings-bar-series-color-variant-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
+105 Bytes
(100%)
...tories-stylings-custom-series-name-formatting-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
-77 Bytes
(100%)
...s-for-all-stories-stylings-custom-series-name-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
-698 Bytes
(98%)
...ll-stories-stylings-line-series-color-variant-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
-24 Bytes
(100%)
...rizontal-alignment-center-place-the-value-labels-on-the-correct-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
-25 Bytes
(100%)
...orizontal-alignment-right-place-the-value-labels-on-the-correct-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
-25 Bytes
(100%)
...rizontal-alignment-center-place-the-value-labels-on-the-correct-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
-22 Bytes
(100%)
...orizontal-alignment-right-place-the-value-labels-on-the-correct-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
-21 Bytes
(100%)
...rizontal-alignment-center-place-the-value-labels-on-the-correct-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
-22 Bytes
(100%)
...orizontal-alignment-right-place-the-value-labels-on-the-correct-area-1-snap.png
Oops, something went wrong.
Binary file added
BIN
+31.2 KB
...actions-test-ts-interactions-should-size-legends-with-ordinal-x-axis-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-204 Bytes
(99%)
...nteractions-tooltip-formatting-should-use-all-custom-tick-formatters-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-201 Bytes
(99%)
...p-formatting-should-use-axis-tick-formatter-with-no-header-formatter-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+148 Bytes
(100%)
...ault-tick-formatter-with-no-axis-tick-formatter-nor-header-formatter-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+54 Bytes
(100%)
...tick-formatter-with-no-axis-tick-formatter-nor-series-tick-formatter-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-204 Bytes
(99%)
...teractions-tooltip-formatting-should-use-header-formatter-for-x-axis-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+652 Bytes
(100%)
...matting-should-use-series-tick-formatter-with-no-axis-tick-formatter-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+59 Bytes
(100%)
...-formatter-with-no-axis-tick-formatter-missing-series-tick-formatter-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+178 Bytes
(100%)
...nal-dataset-no-end-value-should-display-correct-fit-for-type-average-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-97 Bytes
(100%)
...dinal-dataset-no-end-value-should-display-correct-fit-for-type-carry-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+13 Bytes
(100%)
...al-dataset-no-end-value-should-display-correct-fit-for-type-explicit-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+129 Bytes
(100%)
...inal-dataset-no-end-value-should-display-correct-fit-for-type-linear-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+133 Bytes
(100%)
...l-dataset-no-end-value-should-display-correct-fit-for-type-lookahead-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-54 Bytes
(100%)
...nal-dataset-no-end-value-should-display-correct-fit-for-type-nearest-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+95 Bytes
(100%)
...rdinal-dataset-no-end-value-should-display-correct-fit-for-type-none-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+86 Bytes
(100%)
...rdinal-dataset-no-end-value-should-display-correct-fit-for-type-zero-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+2.43 KB
(110%)
...harts-end-value-set-to-2-should-display-correct-fit-for-type-average-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-1.17 KB
(97%)
...-charts-end-value-set-to-2-should-display-correct-fit-for-type-carry-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+2.55 KB
(110%)
...arts-end-value-set-to-2-should-display-correct-fit-for-type-explicit-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+2.28 KB
(110%)
...charts-end-value-set-to-2-should-display-correct-fit-for-type-linear-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+2.54 KB
(110%)
...rts-end-value-set-to-2-should-display-correct-fit-for-type-lookahead-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-1.15 KB
(97%)
...harts-end-value-set-to-2-should-display-correct-fit-for-type-nearest-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-131 Bytes
(100%)
...a-charts-end-value-set-to-2-should-display-correct-fit-for-type-none-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-91 Bytes
(100%)
...a-charts-end-value-set-to-2-should-display-correct-fit-for-type-zero-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-1.08 KB
(97%)
...end-value-set-to-nearest-should-display-correct-fit-for-type-average-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-1.06 KB
(97%)
...s-end-value-set-to-nearest-should-display-correct-fit-for-type-carry-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+2.55 KB
(110%)
...nd-value-set-to-nearest-should-display-correct-fit-for-type-explicit-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-1.28 KB
(96%)
...-end-value-set-to-nearest-should-display-correct-fit-for-type-linear-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-1.01 KB
(97%)
...d-value-set-to-nearest-should-display-correct-fit-for-type-lookahead-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-1.15 KB
(97%)
...end-value-set-to-nearest-should-display-correct-fit-for-type-nearest-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-131 Bytes
(100%)
...ts-end-value-set-to-nearest-should-display-correct-fit-for-type-none-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-91 Bytes
(100%)
...ts-end-value-set-to-nearest-should-display-correct-fit-for-type-zero-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+255 Bytes
(100%)
...area-charts-no-end-value-should-display-correct-fit-for-type-average-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-1.14 KB
(97%)
...e-area-charts-no-end-value-should-display-correct-fit-for-type-carry-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+2.55 KB
(110%)
...rea-charts-no-end-value-should-display-correct-fit-for-type-explicit-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+275 Bytes
(100%)
...-area-charts-no-end-value-should-display-correct-fit-for-type-linear-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+226 Bytes
(100%)
...ea-charts-no-end-value-should-display-correct-fit-for-type-lookahead-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-1.15 KB
(97%)
...area-charts-no-end-value-should-display-correct-fit-for-type-nearest-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-131 Bytes
(100%)
...ge-area-charts-no-end-value-should-display-correct-fit-for-type-none-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-91 Bytes
(100%)
...ge-area-charts-no-end-value-should-display-correct-fit-for-type-zero-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+520 Bytes
(100%)
...nal-dataset-no-end-value-should-display-correct-fit-for-type-average-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+673 Bytes
(100%)
...dinal-dataset-no-end-value-should-display-correct-fit-for-type-carry-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+637 Bytes
(100%)
...al-dataset-no-end-value-should-display-correct-fit-for-type-explicit-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+417 Bytes
(100%)
...inal-dataset-no-end-value-should-display-correct-fit-for-type-linear-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+714 Bytes
(100%)
...l-dataset-no-end-value-should-display-correct-fit-for-type-lookahead-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+413 Bytes
(100%)
...nal-dataset-no-end-value-should-display-correct-fit-for-type-nearest-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+885 Bytes
(100%)
...rdinal-dataset-no-end-value-should-display-correct-fit-for-type-none-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+769 Bytes
(100%)
...rdinal-dataset-no-end-value-should-display-correct-fit-for-type-zero-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+2.43 KB
(110%)
...urved-end-value-set-to-2-should-display-correct-fit-for-type-average-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-1.17 KB
(97%)
...-curved-end-value-set-to-2-should-display-correct-fit-for-type-carry-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+2.55 KB
(110%)
...rved-end-value-set-to-2-should-display-correct-fit-for-type-explicit-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+2.28 KB
(110%)
...curved-end-value-set-to-2-should-display-correct-fit-for-type-linear-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+2.54 KB
(110%)
...ved-end-value-set-to-2-should-display-correct-fit-for-type-lookahead-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-1.15 KB
(97%)
...urved-end-value-set-to-2-should-display-correct-fit-for-type-nearest-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-131 Bytes
(100%)
...h-curved-end-value-set-to-2-should-display-correct-fit-for-type-none-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-91 Bytes
(100%)
...h-curved-end-value-set-to-2-should-display-correct-fit-for-type-zero-1-snap.png
Oops, something went wrong.
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
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
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
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
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
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
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
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
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
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
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
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
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.
Careful with extracting this, the value here is
y0
noty1
like the function returnsThere 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.
Thanks! Commit a054fdc for changes