forked from elastic/elastic-charts
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(xy): stacked polarity (elastic#1502)
Resolves issue with stacking a mix of negative and positive bars and areas for any `StackMode`. Key changes include: - Disallowing stacked band charts (i.e. using `stackAccessors` with `y0Accessors`). Now shows `console.warn` when used and ignores `y0Accessor` for rendering but still adds to `initialY0` value. - Blocks showing banded legend and tooltip values for banded stacks, see case above. - Prevents percentage domain constraining when no `stackAccessors` are specified. fix elastic#1280 # Conflicts: # packages/charts/src/chart_types/xy_chart/rendering/area.ts
- Loading branch information
1 parent
e77c2dc
commit 4af9c8a
Showing
76 changed files
with
586 additions
and
301 deletions.
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
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
Binary file removed
BIN
-61 KB
...tests-for-all-stories-area-chart-stacked-band-visually-looks-correct-1-snap.png
Binary file not shown.
Binary file added
BIN
+20 KB
...or-all-stories-mixed-charts-polarized-stacked-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
-61 KB
...le-to-extents-domain-fit-is-false-should-show-correct-extents-banded-1-snap.png
Binary file not shown.
Binary file removed
BIN
-61 KB
...ale-to-extents-domain-fit-is-true-should-show-correct-extents-banded-1-snap.png
Binary file not shown.
Binary file removed
BIN
-34 KB
...xis-stories-test-ts-axis-stories-should-switch-to-a-30-minute-raster-1-snap.png
Binary file not shown.
Binary file added
BIN
+65.5 KB
...ercentage-polarity-mixed-area-series-should-display-correct-stacking-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
+58 KB
...rea-series-should-show-area-chart-with-toggled-series-and-mouse-over-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
+18.5 KB
...percentage-polarity-mixed-bar-series-should-display-correct-stacking-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
+29.1 KB
...bar-series-should-show-area-chart-with-toggled-series-and-mouse-over-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
+36.2 KB
...entage-polarity-negative-area-series-should-display-correct-stacking-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
+40.8 KB
...rea-series-should-show-area-chart-with-toggled-series-and-mouse-over-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
+18.5 KB
...centage-polarity-negative-bar-series-should-display-correct-stacking-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
+29.2 KB
...bar-series-should-show-area-chart-with-toggled-series-and-mouse-over-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
+36.2 KB
...entage-polarity-positive-area-series-should-display-correct-stacking-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
+40.8 KB
...rea-series-should-show-area-chart-with-toggled-series-and-mouse-over-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
+18.5 KB
...centage-polarity-positive-bar-series-should-display-correct-stacking-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
+29.2 KB
...bar-series-should-show-area-chart-with-toggled-series-and-mouse-over-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
+48.6 KB
...ilhouette-polarity-mixed-area-series-should-display-correct-stacking-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
+50.9 KB
...rea-series-should-show-area-chart-with-toggled-series-and-mouse-over-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
+20.5 KB
...silhouette-polarity-mixed-bar-series-should-display-correct-stacking-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
+30.9 KB
...bar-series-should-show-area-chart-with-toggled-series-and-mouse-over-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
+34.7 KB
...ouette-polarity-negative-area-series-should-display-correct-stacking-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
+42.6 KB
...rea-series-should-show-area-chart-with-toggled-series-and-mouse-over-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
+20.3 KB
...houette-polarity-negative-bar-series-should-display-correct-stacking-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
+30.9 KB
...bar-series-should-show-area-chart-with-toggled-series-and-mouse-over-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
+35.6 KB
...ouette-polarity-positive-area-series-should-display-correct-stacking-1-snap.png
Oops, something went wrong.
Binary file added
BIN
+42.8 KB
...rea-series-should-show-area-chart-with-toggled-series-and-mouse-over-1-snap.png
Oops, something went wrong.
Binary file added
BIN
+20.2 KB
...houette-polarity-positive-bar-series-should-display-correct-stacking-1-snap.png
Oops, something went wrong.
Binary file added
BIN
+31.2 KB
...bar-series-should-show-area-chart-with-toggled-series-and-mouse-over-1-snap.png
Oops, something went wrong.
Binary file added
BIN
+45.7 KB
...de-wiggle-polarity-mixed-area-series-should-display-correct-stacking-1-snap.png
Oops, something went wrong.
Binary file added
BIN
+51.6 KB
...rea-series-should-show-area-chart-with-toggled-series-and-mouse-over-1-snap.png
Oops, something went wrong.
Binary file added
BIN
+19.9 KB
...ode-wiggle-polarity-mixed-bar-series-should-display-correct-stacking-1-snap.png
Oops, something went wrong.
Binary file added
BIN
+32.5 KB
...bar-series-should-show-area-chart-with-toggled-series-and-mouse-over-1-snap.png
Oops, something went wrong.
Binary file added
BIN
+32 KB
...wiggle-polarity-negative-area-series-should-display-correct-stacking-1-snap.png
Oops, something went wrong.
Binary file added
BIN
+42 KB
...rea-series-should-show-area-chart-with-toggled-series-and-mouse-over-1-snap.png
Oops, something went wrong.
Binary file added
BIN
+20.6 KB
...-wiggle-polarity-negative-bar-series-should-display-correct-stacking-1-snap.png
Oops, something went wrong.
Binary file added
BIN
+32.2 KB
...bar-series-should-show-area-chart-with-toggled-series-and-mouse-over-1-snap.png
Oops, something went wrong.
Binary file added
BIN
+31.5 KB
...wiggle-polarity-positive-area-series-should-display-correct-stacking-1-snap.png
Oops, something went wrong.
Binary file added
BIN
+42.1 KB
...rea-series-should-show-area-chart-with-toggled-series-and-mouse-over-1-snap.png
Oops, something went wrong.
Binary file added
BIN
+19.8 KB
...-wiggle-polarity-positive-bar-series-should-display-correct-stacking-1-snap.png
Oops, something went wrong.
Binary file added
BIN
+31.9 KB
...bar-series-should-show-area-chart-with-toggled-series-and-mouse-over-1-snap.png
Oops, something went wrong.
Binary file removed
BIN
-3.67 KB
...tation-should-render-marker-with-annotations-with-0-degree-rotations-1-snap.png
Diff not rendered.
Binary file removed
BIN
-3.62 KB
...tion-should-render-marker-with-annotations-with-180-degree-rotations-1-snap.png
Diff not rendered.
Binary file removed
BIN
-3.79 KB
...ation-should-render-marker-with-annotations-with-90-degree-rotations-1-snap.png
Diff not rendered.
Binary file removed
BIN
-3.79 KB
...uld-render-marker-with-annotations-with-negative-90-degree-rotations-1-snap.png
Diff not rendered.
Binary file removed
BIN
-29.7 KB
...ould-not-display-tooltip-over-point-outside-of-domain-even-more-left-1-snap.png
Diff not rendered.
Binary file removed
BIN
-25 KB
...ain-should-render-area-chart-with-points-outside-of-domain-correclty-1-snap.png
Diff not rendered.
Binary file removed
BIN
-33.3 KB
...-chart-with-points-outside-of-the-domain-with-y-0-accessor-correctly-1-snap.png
Diff not rendered.
Binary file removed
BIN
-24.6 KB
...ain-should-render-line-chart-with-points-outside-of-domain-correctly-1-snap.png
Diff not rendered.
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
Oops, something went wrong.