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 area chart appears empty #61981

Closed
AlonaNadler opened this issue Mar 31, 2020 · 6 comments
Closed

Lens area chart appears empty #61981

AlonaNadler opened this issue Mar 31, 2020 · 6 comments
Labels
Feature:Lens Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@AlonaNadler
Copy link

Version 7.6.1
I dropped a few fields in Lens and then changed to the area chart using the chart switcher. The chart preview appears empty. In a closer look, it seems that instead of area Lens plots dots but you can hardly see it
Lens bug

@AlonaNadler AlonaNadler added bug Fixes for quality problems that affect the customer experience Feature:Lens labels Mar 31, 2020
@timroes timroes added the Team:Visualizations Visualization editors, elastic-charts and infrastructure label Mar 31, 2020
@elasticmachine
Copy link
Contributor

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

@wylieconlon
Copy link
Contributor

@AlonaNadler This looks like what we expect to happen when the interval chosen by the auto-interval is smaller than the rate at which data is collected: for example, if data is collected every hour, but the interval is 30 minutes, then this would be expected.

There are two options here:

But I don't think this is a bug, even though it's unexpected.

@wylieconlon wylieconlon removed the bug Fixes for quality problems that affect the customer experience label Mar 31, 2020
@wylieconlon
Copy link
Contributor

Closing as I think the technical work is already tracked on the fitting functions issue.

@AlonaNadler
Copy link
Author

The reason I think it is a bug :

  • you can hardly see there is something in the preview, for a few seconds I thought it was empty.
  • this is how the same chart look in visualize, this behavior make much more sense
    image. Even if you take 4 hours intervals and the data ingested once a day and it is an area chart. It should show one bucket a day with the accurate number
    Uploading image.png…

@AlonaNadler AlonaNadler reopened this Apr 3, 2020
@wylieconlon
Copy link
Contributor

If this is a bug, then we still have some choices to make about how to define the solution. I think the best solution to this is to let users define their fitting functions, which you can test on the charts demos.

For example, the fitting function that is closest to the behavior you see in the vislib area charts is possible, but I don't think this is the right choice for this data set:

Screenshot 2020-04-03 16 57 02

Because your dataset is "spiky", it might be better to let the user choose something like a linear fitting function, which will smooth out the spikiness.

Screenshot 2020-04-03 16 59 50

The reason I closed this issue is that we are already tracking the need for user-selected fitting functions, which I think is the right solution to the problem.

@timroes
Copy link
Contributor

timroes commented Apr 7, 2020

I agree with Wylie here. The behavior in visualize is actually the broken one, since we make assumptions about how we will be able to fill null values for the user, which does not make sense, since we can't, without knowing the semantics of the data and whether filling with 0 actually makes sense for that specific dataset.

So I'll close this with respect to letting the user specify their fitting function which would then allow them to chose the right approach for those missing data: #17717

@timroes timroes closed this as completed Apr 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Lens Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

No branches or pull requests

4 participants