elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.71k stars 8.13k forks source link

[Lens Gauge chart] Gauge chart is not showing value if it exceeds than the provided limit like aggregation based gauge chart #153010

Closed harnish-elastic closed 7 months ago

harnish-elastic commented 1 year ago

Kibana version: 8.1.0

Elasticsearch version: 8.1.0

Describe the issue:

While performing lens migration, we found that in aggregation based gauge chart as you can see in the image, I have set the maximum range to 5 but still, it is populating the value 8.

image

While migrating it into gauge chart in lens as you can see in the below image, I have set the same maximum range to 5 and it is populating the value to 5 only but the actual value is 8.

image

Steps to reproduce:

  1. Go to Dashboard->Create Gauge chart in lens.
  2. Set metric -> Set minimum value -> Set maximum value (Please set it less than the actual value).
  3. Save it and see behavior.

Expected behavior:

Actual behavior:

elasticmachine commented 1 year ago

Pinging @elastic/kibana-visualizations @elastic/kibana-visualizations-external (Team:Visualizations)

stratoula commented 1 year ago

@harnish-elastic although I see the different behavior, the Lens one makes more sense to me. The maximum value indicates the maximum band. Why do you need a static value here? Why don't you add a dynamic function? So in your example the maximum of cores used. But of course I am not an expert on gauges, this is my personal opinion.

@markov00 wdyt?

markov00 commented 1 year ago

With the new Gauge design we are working on you will also be able to see the current numeric value even if it overshoot the target/range

rajvi-patel-22 commented 1 year ago

Observability team has migrated the existing gauge chart visualization based on this perspective. The current lens editor only supports horizontal and vertical gauge chart. It will be good to have arc gauge chart a well. Hence we have created this issue.

stratoula commented 7 months ago

Tracking this here https://github.com/elastic/kibana/issues/171903