Skip to content

fix(xy): stacked polarity (#1502) [40.1.x]#1522

Merged
nickofthyme merged 1 commit intoelastic:40.1.xfrom
nickofthyme:backport/40.1.x/pr-1502
Dec 9, 2021
Merged

fix(xy): stacked polarity (#1502) [40.1.x]#1522
nickofthyme merged 1 commit intoelastic:40.1.xfrom
nickofthyme:backport/40.1.x/pr-1502

Conversation

@nickofthyme
Copy link
Copy Markdown
Collaborator

Backports the following commits to 40.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:
#	packages/charts/src/chart_types/xy_chart/rendering/area.ts
@nickofthyme nickofthyme enabled auto-merge (squash) December 9, 2021 21:21
@nickofthyme nickofthyme merged commit bfb853f into elastic:40.1.x Dec 9, 2021
@nickofthyme nickofthyme deleted the backport/40.1.x/pr-1502 branch December 9, 2021 21:30
nickofthyme pushed a commit that referenced this pull request Dec 9, 2021
## [40.1.1](v40.1.0...v40.1.1) (2021-12-09)

### Bug Fixes

* **partition:** linkLabel textColor override ([#1498](#1498)) ([#1523](#1523)) ([5324c76](5324c76))
* **xy:** stacked polarity ([#1502](#1502)) ([#1522](#1522)) ([bfb853f](bfb853f)), closes [#1280](#1280)
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