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

Control round and decimal places in Gauge Visualization when using aggregate functions like average #89404

Closed
barrydegraaff opened this issue Jan 27, 2021 · 3 comments · Fixed by #91293
Assignees
Labels
Feature:Gauge Vis Gauge and goal visualization Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@barrydegraaff
Copy link

Follow up from: #13985

Describe the feature:
When using the Gauge Visualization on a dashboard there is no way to control the amount of decimal places when used using aggregate functions like average. The format from the field set at index pattern is not respected.

Describe a specific use case for the feature:
A simple dashboard to show average CPU and RAM percentage of the past 3 minutes, result in a display of 20%, 20.1%, 20.1234%

In this scenario I would like to display only 20%.

field-format
gauge
gauge1

@afharo afharo added Feature:Gauge Vis Gauge and goal visualization Team:Visualizations Visualization editors, elastic-charts and infrastructure labels Feb 1, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

@VladLasitsa
Copy link
Contributor

@barrydegraaff I checked this issue and I can propose two options:

  • Withoud changing exists funtionality: Just change the default pattern for percent in Advanced settings (format:percent:defaultPattern). You can set 0% so that see only integer values.
  • We can add functionality similar as in Field Panel. When user swith to percintageMode (as I understood you use this option in your gauge visualization) in options we will show input field where he can add format pattern only for this visualization.

What do you think?

@barrydegraaff
Copy link
Author

barrydegraaff commented Feb 9, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Gauge Vis Gauge and goal visualization Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
4 participants