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

Add option to show tooltip for empty buckets #950

Closed
formgeist opened this issue Dec 15, 2020 · 2 comments · Fixed by #1226
Closed

Add option to show tooltip for empty buckets #950

formgeist opened this issue Dec 15, 2020 · 2 comments · Fixed by #1226
Assignees
Labels
enhancement New feature or request kibana cross issue Has a Kibana issue counterpart released Issue released publicly :tooltip Related to hover tooltip :xy Bar/Line/Area chart related

Comments

@formgeist
Copy link

Summary

Related to elastic/kibana#85793

It would be beneficial to have an option in the charts to always tooltip for instances where multiple charts are synced, but an individual chart instance cannot show a value because of an empty bucket in the data. In this case we'd like to show a custom tooltip message like "Metric: N/A" or similar.

image

Example of current tooltip behaviour

Kapture 2020-12-15 at 10 14 27

@formgeist formgeist added the enhancement New feature or request label Dec 15, 2020
@markov00 markov00 added :tooltip Related to hover tooltip :xy Bar/Line/Area chart related kibana cross issue Has a Kibana issue counterpart labels Dec 16, 2020
@jpcarey
Copy link

jpcarey commented Mar 8, 2021

I have a similar use case, where I've hidden the X Axis to try to fit into a table row. I'd like to still see the label tooltip to display the x value / date when the data is null.

Example grid:
image

Hover on item with a value:
image

Current hover where the value = null:
image

@markov00 markov00 self-assigned this Jun 12, 2021
markov00 added a commit that referenced this issue Jul 14, 2021
The `showNullValues` prop is now available in the `Settings.tooltip` to allow displaying null Y values in the tooltip.
This should go hand in hand with the right tooltip formatter to catch and correctly format these null values.

fix #950
nickofthyme pushed a commit that referenced this issue Jul 14, 2021
# [33.0.0](v32.0.0...v33.0.0) (2021-07-14)

### Features

* **xy:** add null bars to geometry indexing ([#1226](#1226)) ([20b81a9](20b81a9)), closes [#950](#950)
* **xy:** hide labels that protrude the bar geometry ([#1233](#1233)) ([be1fb3d](be1fb3d)), closes [#1234](#1234)

### BREAKING CHANGES

* **xy:** an API change is introduced: `hideClippedValue` is removed in favor of `overflowConstraints?: Array<LabelOverflowConstraint>;`. The array can contain one or multiple overflow constraints enumerated as `LabelOverflowConstraint`
@nickofthyme
Copy link
Collaborator

🎉 This issue has been resolved in version 33.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@nickofthyme nickofthyme added the released Issue released publicly label Jul 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request kibana cross issue Has a Kibana issue counterpart released Issue released publicly :tooltip Related to hover tooltip :xy Bar/Line/Area chart related
Projects
None yet
4 participants