Skip to content

fix: handle splitted series with group value to 0#289

Merged
markov00 merged 1 commit intoelastic:masterfrom
markov00:fix_legend_names
Aug 7, 2019
Merged

fix: handle splitted series with group value to 0#289
markov00 merged 1 commit intoelastic:masterfrom
markov00:fix_legend_names

Conversation

@markov00
Copy link
Copy Markdown
Collaborator

@markov00 markov00 commented Aug 6, 2019

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

to
Screenshot 2019-08-06 at 11 26 33

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

  • [ ] Any consumer-facing exports were added to src/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
  • Unit tests were updated or added to match the most common scenarios
  • Each commit follows the convention

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
@markov00 markov00 added bug Something isn't working :legend Legend related issue labels Aug 6, 2019
@codecov-io
Copy link
Copy Markdown

codecov-io commented Aug 6, 2019

Codecov Report

Merging #289 into master will increase coverage by 0.05%.
The diff coverage is 100%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
src/chart_types/xy_chart/legend/legend.ts 100% <100%> (ø) ⬆️
src/chart_types/xy_chart/rendering/rendering.ts 99.19% <0%> (-0.14%) ⬇️
src/chart_types/xy_chart/utils/series.ts 100% <0%> (ø) ⬆️
src/chart_types/xy_chart/utils/specs.ts 100% <0%> (ø) ⬆️
src/chart_types/xy_chart/store/chart_state.ts 97.48% <0%> (+0.02%) ⬆️
src/chart_types/xy_chart/store/utils.ts 97.1% <0%> (+0.42%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 759e8b5...b521d00. Read the comment docs.

Copy link
Copy Markdown
Collaborator

@nickofthyme nickofthyme left a 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 🎉

@markov00 markov00 merged commit 0f2217e into elastic:master Aug 7, 2019
@markov00 markov00 deleted the fix_legend_names branch August 7, 2019 13:29
markov00 pushed a commit that referenced this pull request Aug 7, 2019
## [9.0.1](v9.0.0...v9.0.1) (2019-08-07)

### Bug Fixes

* handle splitted series with group value to 0 ([#289](#289)) ([0f2217e](0f2217e)), closes [#288](#288)
@markov00
Copy link
Copy Markdown
Collaborator Author

markov00 commented Aug 7, 2019

🎉 This PR is included in version 9.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@markov00 markov00 added the released Issue released publicly label Aug 7, 2019
AMoo-Miki pushed a commit to AMoo-Miki/OpenSearch-Dashboards that referenced this pull request Feb 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working :legend Legend related issue released Issue released publicly

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Handle split series with 0 as group value

3 participants