-
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] Ability to add some top margin to the chart #171097
Comments
Pinging @elastic/kibana-visualizations (Team:Visualizations) |
I feel that the My personal opinion is to add this padding (not sure if EC allow it) programmatically in specific cases such as reference lines case mentioned above and not give this ability to the users. |
Couple thoughts... First, to answer...
Yes this should be doable but this is simply an option on the Second, about the reference line case in particular, we have an option for the Third, It would be nice for it to be automagic where the user doesn't have to think about it. In Aggs-based we do allow for a I would be happy with always having all these options:
All of these are independent options and not mutually exclusive from an ech perspective. The only case these options would be disabled is if a custom domain is used. On that note, we also don't allow setting only one side of the domain which I think could be nice, but I'm not sure how the options would/should be applied if only the upper or lower bound is defined. |
Thanx Nick! I am changing this to needs-assessment to discuss it on our grooming session and take a decision. (I still think is impact low) |
Nice, there are both pixel and data options for the padding, which I think make sense.
This would be perfect. Probably we need to experiment a bit with the current feature and assess if it makes sense to do it or rather wait for this new setting. |
Glad someone appreciates my added optionality 😄
Agreed! |
FYI the padding is applied BEFORE nicing, so not as you expected @dej611. So a The first 2 changes toggles between I think we can add this control in charts to apply the padding before or after the domain niceing or take the max of the two. |
So we have 3 options here:
|
Describe the feature:
Sometimes it would be useful to have some padding on the top chart.
Few use cases:
Describe a specific use case for the feature:
A typical reference line example:
In this case Lens makes its best to take into account the reference line on top of the chart (auto-magically setting a Y custom bounds) but it does not take into account any padding.
A hacky workaround for this would be to set a transparent reference line (either statical or dynamically computed) to push higher the Y axis top:
but ideally it would be nice to be able to express some padding at chart level in pixels making it indipendent from current unit used.
cc @nickofthyme WDYT?
The text was updated successfully, but these errors were encountered: