[Lens] Sparse histogram data leads to overly wide bars in xy chart #85924
Labels
bug
Fixes for quality problems that affect the customer experience
Feature:Lens
Team:Visualizations
Visualization editors, elastic-charts and infrastructure
Kibana version: master
Describe the bug: If the "intervals" function is used, completely empty buckets are dropped and not part of the table passed to the visualization. For sparse data, this causes a problem because the used interval can't be inferred from the data, leading to elastic-charts guessing. This is very similar to #81580 (for date histograms)
Steps to reproduce:
In both of these, the used interval is 100, but it looks like 900
Expected behavior:
Bars should show the correct width of 100
Any additional context:
There are a few options what to do:
cc @ppisljar what do you think about option 1 here? This case is very similar to the date histogram "auto" interval used, so IMHO it would make sense to use the same solution.
The text was updated successfully, but these errors were encountered: