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

feat(tooltip): expose datum in the TooltipValue #1082

Merged
merged 3 commits into from
Mar 23, 2021

Conversation

markov00
Copy link
Member

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

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
@markov00 markov00 added enhancement New feature or request :tooltip Related to hover tooltip labels Mar 17, 2021
@codecov-io
Copy link

codecov-io commented Mar 17, 2021

Codecov Report

Merging #1082 (d114d1d) into master (f08f4c9) will increase coverage by 0.43%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            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     
Flag Coverage Δ
unittests 71.77% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
.../chart_types/goal_chart/state/selectors/tooltip.ts 38.46% <ø> (ø)
src/chart_types/heatmap/state/selectors/tooltip.ts 36.36% <ø> (ø)
...s/partition_chart/layout/viewmodel/tooltip_info.ts 25.00% <ø> (ø)
src/specs/settings.tsx 90.32% <ø> (ø)
src/chart_types/xy_chart/tooltip/tooltip.ts 76.74% <100.00%> (ø)
src/utils/common.ts 86.07% <100.00%> (ø)
src/mocks/theme.ts 86.66% <0.00%> (ø)
src/mocks/series/index.ts 100.00% <0.00%> (ø)
src/mocks/series/data.ts 100.00% <0.00%> (ø)
src/mocks/specs/specs.ts 83.33% <0.00%> (ø)
... and 12 more

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 f08f4c9...d114d1d. Read the comment docs.

Copy link
Contributor

@rshen91 rshen91 left a 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.

Copy link
Contributor

@darnautov darnautov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@markov00 markov00 merged commit 0246784 into elastic:master Mar 23, 2021
@markov00 markov00 deleted the 2021_03_17-expose_datum_to_tooltip branch March 23, 2021 14:29
github-actions bot pushed a commit that referenced this pull request Mar 23, 2021
# [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))
@nickofthyme
Copy link
Collaborator

🎉 This PR is included in version 25.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@nickofthyme nickofthyme added the released Issue released publicly label Mar 23, 2021
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
enhancement New feature or request released Issue released publicly :tooltip Related to hover tooltip
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bubble chart tooltip customization capabilities
5 participants