[Lens] Zooming in on counter rate chart can land on a empty chart #170393
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
Describe the feature:
Lens'
Counter rate
operation relies on client side computation over amax
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:
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, anull
value every other bucket leading to aNaN
rate value:5 (t0) - null (t1)
=>NaN
null (t1) - 5 (t2)
=>NaN
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:
counter rate
implementation, we could detect this scenario and compute on the fly a minimal interval to "suggest" to the user (via the warning UX?) to quickly fix itThe text was updated successfully, but these errors were encountered: