-
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(areachart): fix misaligned rendering props #141
Conversation
React Spring distributes ES6 by default, which breaks jest tests unless it's imported explicitly using the cjs extension. see pmndrs/react-spring#555
There was a misalignment between the animated props and the non animated ones that causes the area line to use the fill instead of stroke wrongly rendering the line on the chart. fix elastic#140
Aligning the props creation to area charts
Codecov Report
@@ Coverage Diff @@
## master #141 +/- ##
=========================================
+ Coverage 92.84% 92.9% +0.06%
=========================================
Files 31 33 +2
Lines 1481 1495 +14
Branches 163 163
=========================================
+ Hits 1375 1389 +14
Misses 92 92
Partials 14 14
Continue to review full report at Codecov.
|
84152f7
to
927d5dd
Compare
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.
tested localling and code LGTM
🎉 This PR is included in version 3.5.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
# [3.5.0](elastic/elastic-charts@v3.4.5...v3.5.0) (2019-04-01) ### Bug Fixes * **areachart:** fix misaligned rendering props ([opensearch-project#141](elastic/elastic-charts#141)) ([d627f4d](elastic/elastic-charts@d627f4d)), closes [opensearch-project#140](elastic/elastic-charts#140) ### Features * **specs:** add name to series specs ([opensearch-project#142](elastic/elastic-charts#142)) ([c045eee](elastic/elastic-charts@c045eee)), closes [opensearch-project#136](elastic/elastic-charts#136)
Summary
fix #140
There was a misalignment between the animated props and the non animated ones of the area geometry that causes the area line to use the
fill
instead ofstroke
wrongly filling the line on the chart.I've also moved the props creation to a single function so, at least, we have the same type of properties for animated and non animated geometries on area chart.
I've moved the props computation of bars and line outside the components.
A small change on storybook, refactoring axis ids to proper names for area chart
Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.