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

Customize value in the Metric chart #2098

Closed
cauemarcondes opened this issue Jul 10, 2023 · 0 comments · Fixed by #2101
Closed

Customize value in the Metric chart #2098

cauemarcondes opened this issue Jul 10, 2023 · 0 comments · Fixed by #2101
Labels
enhancement New feature or request :metric Related to Metric chart

Comments

@cauemarcondes
Copy link

Is your feature request related to a problem? Please describe.
I'm using the Metrics chart to display some information to the user in the Profiling UI. I'd like to customize the value of one of the items shown, adding an icon on the right side of the value and applying a specific colour.

Describe the solution you'd like
As discussed internally adding two new properties to the MetricDatum type to specify an icon and another to specify the color of the text and icon.

Describe alternatives you've considered
An alternative solution would be change the value type from string to string | ReactElement.

Additional context

Kibana Cross Issues
https://github.com/elastic/prodfiler/issues/3510

@cauemarcondes cauemarcondes added the enhancement New feature or request label Jul 10, 2023
@markov00 markov00 added the :metric Related to Metric chart label Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request :metric Related to Metric chart
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants