-
Notifications
You must be signed in to change notification settings - Fork 122
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
feat: add domain padding #707
feat: add domain padding #707
Conversation
- add margin to domain - allow unconstrained padded domains - create specific y domain type - deprecate yScaleToDataExtent
Codecov Report
@@ Coverage Diff @@
## master #707 +/- ##
==========================================
- Coverage 74.80% 74.48% -0.32%
==========================================
Files 265 282 +17
Lines 8541 8890 +349
Branches 1714 1754 +40
==========================================
+ Hits 6389 6622 +233
- Misses 2099 2211 +112
- Partials 53 57 +4
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 are some issues with the computed padding in percentage that can be shown in the following story: http://localhost:9001/?path=/story/bar-chart--scale-to-extent
The positive and negative added padding doesn't represent exactly the applied values
55137a9
to
053fd69
Compare
- avoid mutating stack/non-stacked domains before combining - update scale to extent story
053fd69
to
8374e5f
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.
LGTM
🎉 This PR is included in version 19.7.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
# [19.7.0](elastic/elastic-charts@v19.6.3...v19.7.0) (2020-06-30) ### Bug Fixes * **partition:** linked label on a larger than 180 degree slice ([opensearch-project#726](elastic/elastic-charts#726)) ([7ac128e](elastic/elastic-charts@7ac128e)), closes [opensearch-project#699](elastic/elastic-charts#699) ### Features * add domain padding ([opensearch-project#707](elastic/elastic-charts#707)) ([8084e4b](elastic/elastic-charts@8084e4b)), closes [opensearch-project#706](elastic/elastic-charts#706)
Summary
fixes #706
yScaleToDataExtent
in favor ofdomain.fit
Checklist
src/index.ts
(and stories only import from../src
except for test data & storybook)