Skip to content
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

Merged
merged 6 commits into from
Apr 1, 2019

Conversation

markov00
Copy link
Member

@markov00 markov00 commented Apr 1, 2019

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 of stroke 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 strikethroughs to remove checklist items you don't feel are applicable to this PR.

  • 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

markov00 added 5 commits April 2, 2019 01:19
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-io
Copy link

codecov-io commented Apr 1, 2019

Codecov Report

Merging #141 into master will increase coverage by 0.06%.
The diff coverage is 100%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
...onents/react_canvas/utils/rendering_props_utils.ts 100% <100%> (ø)
src/components/react_canvas/globals.ts 100% <0%> (ø)

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 56b173d...927d5dd. Read the comment docs.

@markov00 markov00 force-pushed the fix-area-rendering branch from 84152f7 to 927d5dd Compare April 1, 2019 18:06
@markov00 markov00 requested a review from emmacunningham April 1, 2019 18:06
@markov00 markov00 added bug Something isn't working :test Missing or to be fixed test :chart Chart element related issue labels Apr 1, 2019
@markov00 markov00 changed the title Fix area rendering fix(areachart): fix misaligned rendering props Apr 1, 2019
Copy link
Contributor

@emmacunningham emmacunningham left a 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

@markov00 markov00 merged commit 9694b5b into elastic:master Apr 1, 2019
markov00 pushed a commit that referenced this pull request Apr 1, 2019
# [3.5.0](v3.4.5...v3.5.0) (2019-04-01)

### Bug Fixes

* **areachart:** fix misaligned rendering props  ([#141](#141)) ([9694b5b](9694b5b)), closes [#140](#140)

### Features

* **specs:** add name to series specs ([#142](#142)) ([a6e6f49](a6e6f49)), closes [#136](#136)
@markov00
Copy link
Member Author

markov00 commented Apr 1, 2019

🎉 This PR is included in version 3.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@markov00 markov00 added the released Issue released publicly label Apr 1, 2019
@markov00 markov00 deleted the fix-area-rendering branch April 16, 2019 12:05
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 :chart Chart element related issue released Issue released publicly :test Missing or to be fixed test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Line appears across the chart after v.3.4.5
3 participants