-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Allow users to configure fitting/filling function for missing/null buckets #17717
Comments
When having those options, can it also make sense allowing the 4th option Custom value which replaces the |
Hey, sorry I actually hit Send before I finished typing :D So I was still editing that issue, and yeah that's on the list too. |
Suggesting to replace |
Thanks for that feedback. I changed the name in the above description. |
Hey @timroes can you describe better what is the difference between the
Maybe what you want to say is: use the closest value (either before or after) that was non null? |
Yeap that's what I want to say :) So Update: extended the table above to hold an example for each fitting function. |
Can we also add an option so that the user can choose to interpret 0 values as null? For very good reasons, ES returns a null bucket value when there are no documents in the bucket for average/max/etc aggregations but a 0 bucket value for a sum aggregation. As an example use case we may have the chart below, where the drop to 0 communicates unintended information, when we really want to treat those as null and just show no information at all. |
I will leave here a comment for fixing this last comment: I think we should be careful on that and always check the bucket docs count before changing the sum value to 0. we can have buckets with 2 values with 0 sum that should be treated as a valid 0. |
How would end values be handled in this scenario? Specifically referring to Would these values just be dropped from the dataset? Or assume Example: const nullStart = [null, 2, 5, 8];
const nullEnd = [2, 5, 8, null]; |
@wylieconlon any thoughts on this ☝️ |
@nickofthyme I think you're assuming that all of these fitting functions will return continuous data- as in we can draw a line between any values. Are there two types of fitting functions, one that is continuous and one that is discrete? In the examples you mentioned, I would expect that a line chart based on the |
Can another option be added for a GH-6245 references this issue in more detail, but I’m not sure anything was ever concluded with it. Newer users shouldn’t be expected to input |
@sec-init so rather than using the |
I would say in addition to |
Hi everyone, |
Removing Lens and elastic-charts labels as fitting functions are supported there by now |
This feature is available since 7.9.0 in Lens (implemented via #69820). |
Kibana currently handles
null
within a chart a bit differently depending on the chart.Since the way a
null
value should be handled really depends on the semantics of the data, we cannot make a meaningful decision for the user. We should rather give the user the possibility to change a "fitting function", that will calculate what values should be "fitted" in for null values. Possible values could be (the examples, show what that fitting function would turn the input series[2, null, null, 8]
into):[2, null null, 8]
[2, 2, 2, 8]
[2, 2, 8, 8]
[2, 8, 8, 8]
[2, 5, 5, 8]
[2, 4, 6, 8]
0
[2, 0, 0, 8]
x
), that should be used instead[2, x, x, 8]
This fitting settings would behave similar to the timelion
.fit
function, but should work for all charts.The text was updated successfully, but these errors were encountered: