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] Improve handling of partial data in date histograms #103557

Closed
Tracked by #57706
wylieconlon opened this issue Jun 28, 2021 · 2 comments
Closed
Tracked by #57706

[Lens] Improve handling of partial data in date histograms #103557

wylieconlon opened this issue Jun 28, 2021 · 2 comments
Labels
discuss enhancement New value added to drive a business result Feature:Lens Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@wylieconlon
Copy link
Contributor

Date histograms are rounded down in Elasticsearch which means that users will often have partial data for their data histograms. For example, if today is March 15th 2021 and I choose a "Last 1 year" time filter with 1 month as my date histogram interval, the date histogram will actually start on March 1st of the previous year, 2020, but due to the time filter the first 14 days of March will be excluded.

There are several potential ways that we can solve this problem:

  • Allow the user to exclude the last partial bucket, which starts on March 1st 2021
  • Allow the user to exclude all partial buckets, which excludes all the data from March 2020 and March 2021
  • Default to a right-aligned date histogram, or allow the user to choose
  • Instead of hiding partial buckets, indicate the partial data in all chart types including tables
  • Update the X axis rendering so that partial bars are rendered at the correct size, without fixing other renderers like tables

I believe that none of these options is a 100% solution, but my personal preference is to allow both right-aligned and left-aligned date histograms. It might be best for backwards compatibility to keep the current left-aligned default.

@wylieconlon wylieconlon added discuss enhancement New value added to drive a business result Team:Visualizations Visualization editors, elastic-charts and infrastructure Feature:Lens labels Jun 28, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

@ghudgins
Copy link
Contributor

closing and will track this improvement in #7556

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discuss enhancement New value added to drive a business result Feature:Lens Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

No branches or pull requests

3 participants