Limit the automatic legend size to a set of static values #1616
Labels
:all
Applies to all chart types
enhancement
New feature or request
kibana cross issue
Has a Kibana issue counterpart
:legend
Legend related issue
Is your feature request related to a problem? Please describe.
When showing multiple charts in a dashboard, it's hard to align the charts together due to various factors:
Due to this content dependency, a nice alignment is hard to achieve. We already have add the ability to manually configure the legend width/height but we can improve it.
Describe the solution you'd like
The theme should support adding a set of values to which the legend should snap when computing its size automatically.
If we consider something like:
[50, 100, 150, 200]
in pixels, the resulting legend width should be the minimum value in this array that can contain the labels, or the biggest value if overflows it.This is similar to this feature but for legend
Kibana Cross Issues
elastic/kibana#126018
The text was updated successfully, but these errors were encountered: