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] Missing values - Fitting functions should support start/end values for fitting #72691

Closed
wylieconlon opened this issue Jul 21, 2020 · 9 comments · Fixed by #127749
Closed
Assignees
Labels
Feature:Lens Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@wylieconlon
Copy link
Contributor

You can see this feature in the charts examples, but Lens does not use the endValue setting. As a result, we have charts that have a sudden start value even if the underlying data is intended to be continuous:

Screenshot 2020-07-21 12 37 07

cc @markov00 I'm not sure that the fitting functions support a startValue?

@wylieconlon wylieconlon added Team:Visualizations Visualization editors, elastic-charts and infrastructure Feature:Lens labels Jul 21, 2020
@elasticmachine
Copy link
Contributor

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

@markov00
Copy link
Member

@wylieconlon actually the endValue is used for both edge of the chart, using the nearest it will draw a horizontal line at the height of each edge.
If this is not what you are looking for, can you specify better your use case? why are you looking for a startValue but you are not interested into an endValue?

I'm seeing also a weird artifact on the dashed line
Screenshot 2020-07-22 at 10 10 19 have you seen this in other situations?

@wylieconlon
Copy link
Contributor Author

@markov00 I think it's fine if both start and end values are the same, but I didn't realize that it would depend on the fitting function. Which fitting functions use endValues?

@markov00
Copy link
Member

  • carry uses this value if there is a missing point at the beginning
  • lookahead uses this value if there is a missing point at the end
  • average and linear use the value for beginning and end missing points

@flash1293
Copy link
Contributor

@wylieconlon can we close this issue? It seems like there is nothing to do right now.

@wylieconlon
Copy link
Contributor Author

@flash1293 Since all three of the fitting functions that have this behavior are supported in Lens, I think there is a change that should be made. I tested this out locally by setting endValue: 0 and using the linear fitting function. Here's how it looks:

Before:

Screen Shot 2020-08-06 at 11 18 51 AM

After:

Screen Shot 2020-08-06 at 11 19 18 AM

@flash1293
Copy link
Contributor

@wylieconlon The first behavior seems preferable to me as it's using less assumptions about the data. It's also the behavior of vislib as far as I can tell. It seems like I'm missing the obvious improvement here, can you elaborate?

@wylieconlon
Copy link
Contributor Author

The main improvement is that this draws a vertical line, instead of starting the points in the middle of the screen. This would be useful for metrics like uptime/downtime, where the transition between the "no data" and "has data" state is important to visualize. But like all of the fitting functions I think this is use-case dependent, and I'm suggesting that we provide users the choice instead of removing it.

@flash1293
Copy link
Contributor

Makes sense, thanks for clarifying.

@ghudgins ghudgins changed the title [Lens] Fitting functions should support start/end values for fitting [Lens] Missing values - Fitting functions should support start/end values for fitting Sep 14, 2021
@flash1293 flash1293 self-assigned this Mar 15, 2022
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

Successfully merging a pull request may close this issue.

4 participants