-
Notifications
You must be signed in to change notification settings - Fork 115
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: handle splitted series with group value to 0 #289
Conversation
The current implementation wrongly interpret a zero value in the colorValues list of a legend item as a single series. This cause that series to be named with the spec name or the spec id. Instead a splitted series with a group value of zero, should be threated in the same way as anyother splitted series, using the group value as the series name fix elastic#288
Codecov Report
@@ Coverage Diff @@
## master #289 +/- ##
==========================================
+ Coverage 98.17% 98.23% +0.05%
==========================================
Files 37 37
Lines 2682 2996 +314
Branches 617 740 +123
==========================================
+ Hits 2633 2943 +310
- Misses 44 46 +2
- Partials 5 7 +2
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.
Was just going to comment on this issue, but it's already fixed 🎉
🎉 This PR is included in version 9.0.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## [9.0.1](elastic/elastic-charts@v9.0.0...v9.0.1) (2019-08-07) ### Bug Fixes * handle splitted series with group value to 0 ([opensearch-project#289](elastic/elastic-charts#289)) ([82c698f](elastic/elastic-charts@82c698f)), closes [opensearch-project#288](elastic/elastic-charts#288)
Summary
The current implementation wrongly interpret a zero value in the colorValues list of a legend item
as a single series. This cause that series to be named with the spec name or the spec id. Instead a splitted series with a group value of zero, should be threated in the same way as anyother splitted series, using the group value as the series name
fix #288
from
![Screenshot 2019-08-06 at 11 26 48](https://user-images.githubusercontent.com/1421091/62528431-24b70200-b83d-11e9-8cc9-2449d0971409.png)
to
![Screenshot 2019-08-06 at 11 26 33](https://user-images.githubusercontent.com/1421091/62528445-2aace300-b83d-11e9-91b2-092d783429f4.png)
Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.[ ] Any consumer-facing exports were added tosrc/index.ts
(and stories only import from../src
except for test data & storybook)[ ] This was checked for cross-browser compatibility, including a check against IE11[ ] Proper documentation or storybook story was added for features that require explanation or tutorials