-
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(crosshair): limit the width of the cursor band on edges #353
Conversation
If the xDomain doesn't cover a full interval on the min or max edges, the crosshair is drawn outside the chart. This commit will fix that behaviour limiting the cursor band width and position to be always inside the chart
Codecov Report
@@ Coverage Diff @@
## master #353 +/- ##
=========================================
+ Coverage 98.29% 98.3% +<.01%
=========================================
Files 38 38
Lines 2753 2765 +12
Branches 648 652 +4
=========================================
+ Hits 2706 2718 +12
Misses 43 43
Partials 4 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.
Created separate 👉 issue #354
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 locally looks good.
I Noticed issue that is also in master #354
🎉 This PR is included in version 11.0.4 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## [11.0.4](elastic/elastic-charts@v11.0.3...v11.0.4) (2019-08-27) ### Bug Fixes * **crosshair:** limit the width of the cursor band on edges ([opensearch-project#353](elastic/elastic-charts#353)) ([7ab5211](elastic/elastic-charts@7ab5211)), closes [opensearch-project#352](elastic/elastic-charts#352)
Summary
If the xDomain doesn't cover a full interval on the min or max edges, the crosshair is drawn outside the chart as shown in the screenshot.
This commit will fix that behaviour limiting the cursor band width and position to be
always inside the chart
fix #352
Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.src/index.ts
(and stories only import from../src
except for test data & storybook)[ ] Proper documentation or storybook story was added for features that require explanation or tutorials