elastic / kibana

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

[Lens][Metric] Using Intervals with auto ranges shows empty for no data #191147

Open nickofthyme opened 2 weeks ago

nickofthyme commented 2 weeks ago

Kibana version:

main, 8.15

Describe the bug:

This is likely expected behavior but

Steps to reproduce:

  1. Open kibana to Lens with sample data.
  2. Create a new Metric vis.
  3. Set Primary metric to count of records.
  4. Set Break down by to intervals of bytes.
  5. Set the time range to 1 week, notice the auto generated metrics.
  6. Set the time range to last 1 minute, notice the empty workspace.

https://github.com/user-attachments/assets/8ce4019e-5544-473c-a6a8-ec1523590b06

Expected behavior:

Something shows up to indicate no data. Maybe just the empty metric with just the -, like this 👇🏼

image

Also note this vis on the dashboard shows up as an empty white panel.

image

Editing the vis from dashboard to Lens show an initial flicker.

https://github.com/user-attachments/assets/93819d27-f309-42af-9d29-ed505d1bf53c

elasticmachine commented 2 weeks ago

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

dej611 commented 2 weeks ago

I think this PR here should be able to address this as well: https://github.com/elastic/kibana/pull/190966