-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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] Create combined histogram/range aggregation for numbers #59424
Comments
Pinging @elastic/kibana-app (Team:KibanaApp) |
I don't think we've decided yet how to implement numeric histograms. The least controversial way is to get users to manually select their interval. I remember having discussed the concept of automatic intervals, but the concept got a lot of pushback in those discussions with the Elasticsearch team. If it isn't done in Elasticsearch, it might be able to be done in Esaggs- but this would require coordination with app arch and Elasticsearch. |
I think you are right @wylieconlon , but as it is a little more delicate to implement this right from the technical side, I would like to split it out into a separate issue and keep this one focused on what we can achieve with the current upstream feature set. Manual intervals will already be incredibly helpful and are possible with little effort, that's why IMHO we shouldn't tie it to a new feature which requires coordination across multiple teams and is relatively unclear at the moment. Still definitely something we should continue to look into. |
@flash1293 I think we're saying the same thing: I am in favor of manually defined intervals because it's unambiguous. |
One of the important elements to consider when building intervals for histograms and ranges is whether there is rollup support for the interval. For rollups V1, we should restrict users. The implementation for rollups V2 is not yet defined. |
@timroes Could you link the issue for auto interval histogram here as well to keep track? |
The |
@cchaos Do you have an updated design for the histogram form? This form looks like it's missing some of the features that Specifically, this form is in the mode of "user types an interval", which is a separate mode from "auto interval with maximum number of buckets". Basically, here are the options as we would have them: Auto mode:
User-defined mode:
|
Thanks for directing me to that PR. It made it a bit clearer what the functionality and options are. I definitely think there is a way to simplify the form versus having disabled inputs. All mock copy subject to change/review from Alona/docs For example, in the "Auto" mode for the whole interval granularity, we have a simple on/off switch and show the input (similar to the PR) But when Auto mode is turned off, the input gets swapped out for the actual minimum interval value. But no matter which "mode" they're in, they still have the option to completely customize the intervals which would swap out the entire form for the custom mode. |
@cchaos your mock seems reasonable to me.
Mind that there's a maximal amount of bars which can be shown. |
Agreed, this looks reasonable @cchaos. Instead of |
Ok, so I'm interpreting this as The reason I removed the word "bars" was to make it more scalable for other chart types. It'd be great to find a generic term to fit all chart types. cc @AlonaNadler for wording. Here's a gif of the newest interaction. Again the Figma prototype will always have the latest. |
I am a bit confused about that naming: As for the input, why not just use a regular Number Field as for the |
Well are you setting an explicit number or are you setting minimums and maximums while the chart display may change the actual number of intervals or interval values? We should be explicit for setting expectations on what the input will be setting. The input with the range dropdown is also a number input. It just gives users a quick way to slide up/down without having to arrow down or type. |
When in
Here #76121 it is possible to play with the feature when in We've been talking about the 100 number by default, but this is a global Kibana configuration setting which sets the maximum number of bars in a chart. Note: I've updated the algorithm above based on my new understanding of the |
Lens should support histogram and range aggregations. Those two aggregations should ideally be combined into one UI, since from a user perspective they are kind of doing the same, with the minor difference of having a "fixed interval" or "manual defined intervals". Thus I would suggest that we combine histogram and range aggregations under one "lens aggregation" with just different options.
The text was updated successfully, but these errors were encountered: