-
Notifications
You must be signed in to change notification settings - Fork 121
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: stack as percentage with 0 or null values #618
fix: stack as percentage with 0 or null values #618
Conversation
This commit fix a regression related to the rendering of stacked area/bar charts where Y values are 0 or null and the stack is configured as percentage fix elastic#617
Codecov Report
@@ Coverage Diff @@
## master #618 +/- ##
==========================================
- Coverage 70.79% 70.63% -0.16%
==========================================
Files 220 220
Lines 6409 6439 +30
Branches 1224 1229 +5
==========================================
+ Hits 4537 4548 +11
- Misses 1853 1872 +19
Partials 19 19
Continue to review full report at Codecov.
|
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.
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.
LGTM checked out locally on Chrome - thanks for writing really clear tests and adding the new story in storybook
This commit fix a regression related to the rendering of stacked area/bar charts where Y values are 0 or null and the stack is configured as percentage fix elastic#617
🎉 This PR is included in version 18.2.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This commit review the work done in elastic#618 to fix the following case: if we are stacking areas in percentage mode and the values for all series are 0 we shall use 0% as value for each point in that bucket. In the aforementioned PR we were handling that case as null, completely disconnecting the previous data points from the following ones on the chart.
This commit review the work done in #618 to fix the following case: if we are stacking areas in percentage mode and the values for all series are 0 we shall use 0% as value for each point in that bucket. In the aforementioned PR we were handling that case as null, completely disconnecting the previous data points from the following ones on the chart.
## [18.2.1](elastic/elastic-charts@v18.2.0...v18.2.1) (2020-04-07) ### Bug Fixes * stack as percentage with 0 or null values ([opensearch-project#618](elastic/elastic-charts#618)) ([9de7b60](elastic/elastic-charts@9de7b60)), closes [opensearch-project#617](elastic/elastic-charts#617)
Summary
This commit fix a regression related to the rendering of stacked area/bar charts where Y values are 0 or null and the stack is configured as percentage.
A new snapshot test was also added to cover that case
fix #617
Checklist
Delete any items that are not applicable to this PR.