-
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
[Lens] Default legend size to fixed #129474
Comments
Pinging @elastic/kibana-vis-editors @elastic/kibana-vis-editors-external (Team:VisEditors) |
Is the thinking here that we would do away with "Auto" as an option for visualization legend width in Lens (and instead apply one of the static options such as "Medium" as the default)? If so, that sounds good off the top of my head. With the removal of "Auto," it would also allow us to add prepend and append buttons to allow users the ability quickly decrease/increase legend width on the width selector (similar to how we do for metric text size). CCing @markov00 as well, as we talked about it briefly in a past comment thread. |
I'm a big fan of a consistent and aligned design but, as commented in multiple places, I think we should consider this option at the dashboard level, not at a single chart level because:
|
I see these as separate things but something we should start to track. We have a number of dashboard-level visualization overrides mentioned in the past as well (palettes and color by term surfaced similar feedback). I can track down existing issues with @teresaalvarezsoler and get back to you on the dashboard level overrides. we already support setting sizes at the chart level today - this is about defaults...I think it's okay to have individual level settings for the cases where you're exploring from a non-dashboard context...but dashboard level overrides would be a great tool to make getting the right consistent look much much easier as you mention |
What I'm saying is that specifying a static default value doesn't solve the problem mentioned in this issue:
your problem here is to
When you are exploring from a non-dashboard context (basically only within Lens) users doesn't really care about resizing the legend: the auto setting should be a good default choice most of the time, except for very long labels where the user can adjust the size if case. |
agree - only solves for new dashboards. but it does help with alignment by default without the larger overarching feature?
it's a good point. I am not sure if it would be weird to start introducing some visual options in one place and not the other. will be a good one to think through. |
new dashboards and new visualizations
IMHO not as much as the dashboard level manual configuration or an automatic one that automatically aligns all legends to a nice size for all. |
Having level-dashboard settings to build consistent visualizations makes sense to me. However, when a legend is set as default, it has always the same size for all the charts created, doesn't it? I can't reproduce the issue here, do you have a screenshot? Some other questions @ghudgins :
Thanks |
A few users on discuss and one user on the community slack were upset when we changed from vislib (old datavis library) to elastic-charts for the pie chart because the new one had an "Auto" legend and was causing alignment issues.
(My answer is broadly - see "stack" clarification below) - I don't have a percentage but venturing a guess that stacking similar visualizations vertically is fairly common - would guess @ 50% but it's not very scientific at all 😅
Any legend - when I say "stack" here I'm referring to putting them on top of each other. my apologies for the bad word choice! |
Discussed offline - for now we can go with setting the legend width to a fixed value by default and taking away the "auto" setting. For existing visualizations auto will stay in place, but it's not possible to configure for new visualizations. |
can you please add telemetry to that? it will be great to know what is the ratio of users changing the default legend size? |
Describe the feature:
Update the Lens/Agg-based visualizations to use a fixed legend by default
Describe a specific use case for the feature:
When I'm building a dashboard with multiple vertically arranged visualizations (common)
I need legend size to default to a fixed size instead of auto
So I can avoid having to set legend size on every visualization to get a consistent layout
Design questions: CC @gvnmagni @MichaelMarcialis
The text was updated successfully, but these errors were encountered: