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

[Lens] Zooming in on counter rate chart can land on a empty chart #170393

Closed
dej611 opened this issue Nov 2, 2023 · 3 comments
Closed

[Lens] Zooming in on counter rate chart can land on a empty chart #170393

dej611 opened this issue Nov 2, 2023 · 3 comments
Labels
enhancement New value added to drive a business result Feature:Lens 🧊 iceboxed impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@dej611
Copy link
Contributor

dej611 commented Nov 2, 2023

Describe the feature:

Lens' Counter rate operation relies on client side computation over a max ES agg which can lead, in some zooming in scenarios, into an empty chart scenario unless the user knows exactly the frequency documents are stored.

In this example I've simulated a regular document updates every 10 minutes, therefore if the date range offers a bucket window bigger than 10m the chart is showing a line, but zooming in at a point where the bucket window is < 10 minutes (i.e. 5 minutes in the gif) makes the line go away:

counter_rate_zoom_bug

User has to force the minimum interval to match the update frequency of 10 minutes to make the chart appear again.

The root issue here is that Lens relies on a max agg that will return, in the case of 5 minutes, a null value every other bucket leading to a NaN rate value:

  • 5 (t0) - null (t1) => NaN
  • null (t1) - 5 (t2) => NaN
  • ...etc

One instance of this has been already logged on #163706

Describe a specific use case for the feature:

I think there's not a simple solution here for the problem, but just throwing some ideas:

@dej611 dej611 added enhancement New value added to drive a business result Team:Visualizations Visualization editors, elastic-charts and infrastructure Feature:Lens labels Nov 2, 2023
@elasticmachine
Copy link
Contributor

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

@stratoula stratoula added the impact:needs-assessment Product and/or Engineering needs to evaluate the impact of the change. label Nov 5, 2023
@timductive
Copy link
Member

We talked and decided that we should investigate using the ES rate agg in every case to fix this (Marco's 2nd option above).

@timductive timductive added impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. and removed impact:needs-assessment Product and/or Engineering needs to evaluate the impact of the change. labels Nov 15, 2023
@markov00
Copy link
Member

markov00 commented Jun 3, 2024

In order to provide better transparency of priorities, issues that will not be prioritized within the next 24 months are being closed.

Tracking request in Lens general improvements ice box #184459

@markov00 markov00 closed this as not planned Won't fix, can't repro, duplicate, stale Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New value added to drive a business result Feature:Lens 🧊 iceboxed impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

No branches or pull requests

5 participants