-
Notifications
You must be signed in to change notification settings - Fork 120
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(metric): trend with string value #2011
Merged
markov00
merged 6 commits into
elastic:main
from
markov00:2023_04_03-add_text_with_metric_trend
Apr 11, 2023
Merged
feat(metric): trend with string value #2011
markov00
merged 6 commits into
elastic:main
from
markov00:2023_04_03-add_text_with_metric_trend
Apr 11, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildkite update screenshots |
markov00
added
API
Changes the external API types
:metric
Related to Metric chart
labels
Apr 5, 2023
markov00
changed the title
feat: add text value with trend
feat(metric): add text value with trend
Apr 5, 2023
markov00
changed the title
feat(metric): add text value with trend
feat(metric): trend with string value
Apr 5, 2023
nickofthyme
approved these changes
Apr 6, 2023
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 on pr deployment, works well with truncating long text. It seem like most usage here would be short strings but may think about multiline text as a future enhancement.
nickofthyme
pushed a commit
that referenced
this pull request
Apr 18, 2023
# [56.0.0](v55.0.0...v56.0.0) (2023-04-18) ### Bug Fixes * **deps:** update dependency @elastic/eui to ^76.4.0 ([#2008](#2008)) ([95176e1](95176e1)) * **deps:** update dependency @elastic/eui to v77 ([#2018](#2018)) ([c079730](c079730)) * **interactions:** brushing over origin coordinates ([#2013](#2013)) ([937feb0](937feb0)) * **tooltip:** custom tooltip header context ([#1989](#1989)) ([1e5b861](1e5b861)) ### Features * **metric:** trend with string value ([#2011](#2011)) ([91d7695](91d7695)) ### BREAKING CHANGES * **tooltip:** The `header` property of `TooltipInfo` type was simplified to `PointerValue` as to include only relevant properties. This change is propagated to all other types using `header` as a `TooltipValue`. The `TooltipInfo.values` used to conditionally pass only highlighted `TooltipValue`s when using a `customTooltip` and now _always_ passes all `values`.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds the ability to show a text, rather than a value, when rendering a metric with a trend in the background.
Details
This is a different Datum type, with a
value: string
and novalueFormatter
since the string doesn't need an additional treatment.Issues
fix #1953
Checklist
:xy
,:partition
):interactions
,:axis
)closes #123
,fixes #123
)packages/charts/src/index.ts