-
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
feat(tooltip): expose datum in the TooltipValue #1082
feat(tooltip): expose datum in the TooltipValue #1082
Conversation
Adds the datum, when possible, to the TooltipValue object. Currently available for cartesian, gauge/goal, heatmap. Disabled for partition charts as we cannot represent a single datum for a partition chart due to its aggregated and nested nature. fix elastic#1042
Codecov Report
@@ Coverage Diff @@
## master #1082 +/- ##
==========================================
+ Coverage 71.77% 72.20% +0.43%
==========================================
Files 381 397 +16
Lines 11743 12058 +315
Branches 2512 2540 +28
==========================================
+ Hits 8429 8707 +278
- Misses 3299 3328 +29
- Partials 15 23 +8
Flags with carried forward coverage won't be shown. Click here to find out more.
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.
LGTM! Tested locally with playground - passing different types of test value(s) to the datum
(when set to true) in tooltipOptions and then passing the options through tooltip in settings works 👍 . I like the option for users if they need it and setting it to default off the bat seems great.
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
# [25.4.0](v25.3.0...v25.4.0) (2021-03-23) ### Bug Fixes * chromium area path render bug ([#1067](#1067)) ([e16d15d](e16d15d)) ### Features * **tooltip:** expose datum in the TooltipValue ([#1082](#1082)) ([0246784](0246784)), closes [#1042](#1042) * **wordcloud:** wordcloud ([#1038](#1038)) ([f08f4c9](f08f4c9))
🎉 This PR is included in version 25.4.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
# [25.4.0](elastic/elastic-charts@v25.3.0...v25.4.0) (2021-03-23) ### Bug Fixes * chromium area path render bug ([opensearch-project#1067](elastic/elastic-charts#1067)) ([37301bf](elastic/elastic-charts@37301bf)) ### Features * **tooltip:** expose datum in the TooltipValue ([opensearch-project#1082](elastic/elastic-charts#1082)) ([48dc9d5](elastic/elastic-charts@48dc9d5)), closes [opensearch-project#1042](elastic/elastic-charts#1042) * **wordcloud:** wordcloud ([opensearch-project#1038](elastic/elastic-charts#1038)) ([d724cad](elastic/elastic-charts@d724cad))
Summary
Adds the datum, when possible, to the
TooltipValue
object.Currently available for cartesian, gauge/goal, heatmap.
Disabled for partition charts as we cannot represent a single datum for a partition chart due to its aggregated and nested nature.
fix #1042