-
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] formula - clamp function min/max can be optional #125930
Comments
Pinging @elastic/kibana-vis-editors @elastic/kibana-vis-editors-external (Team:VisEditors) |
This could simplify TSVB to Lens implementation too for 'positive_only' Here https://github.com/elastic/kibana/blob/main/src/plugins/vis_types/timeseries/public/trigger_action/metrics_helpers.ts#L207 |
I've digged a bit into this issue and found out some interesting insights:
Perhaps the user experience can be improved by exposing some guidance to use the |
@dej611 Unfortunately we can't use min or max because these names are taken by the Elasticsearch aggregations already. We could introduce |
It works. |
I've put together a quick PoC with the following:
PoC: #132449 What do you think @flash1293 ? |
I like that approach 👍 |
Fixed by #132449 |
Describe the feature: Make the lens formula clamp not require a min or max value.
Describe a specific use case for the feature:
When I have data that sometimes could generate negative values
And I don't want negative values
I need to use the
clamp
functionAnd I don't want to specify an arbitrarily high value...I want to not include a max value (like Canvas)
So I can get the visualization I want without having to use random constants
Note: if we go forward with this enhancement remember to update in app product documentation as that currently shows all fields required
Related discuss post
The text was updated successfully, but these errors were encountered: