Skip to content

fix(xy): stacked polarity (#1502) [38.1.x]#1526

Merged
nickofthyme merged 2 commits intoelastic:38.1.xfrom
nickofthyme:backport/38.1.x/pr-1502
Dec 10, 2021
Merged

fix(xy): stacked polarity (#1502) [38.1.x]#1526
nickofthyme merged 2 commits intoelastic:38.1.xfrom
nickofthyme:backport/38.1.x/pr-1502

Conversation

@nickofthyme
Copy link
Collaborator

Backports the following commits to 38.1.x:

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:
#	integration/tests/__image_snapshots__/axis-stories-test-ts-axis-stories-should-switch-to-a-30-minute-raster-1-snap.png
#	packages/charts/src/chart_types/xy_chart/rendering/area.ts
#	packages/charts/src/chart_types/xy_chart/utils/stacked_series_utils.ts
@nickofthyme nickofthyme enabled auto-merge (squash) December 10, 2021 21:08
@nickofthyme nickofthyme merged this pull request into elastic:38.1.x Dec 10, 2021
@nickofthyme nickofthyme deleted the backport/38.1.x/pr-1502 branch December 10, 2021 23:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant