elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.72k stars 8.14k forks source link

[Heatmap] Legend is taking up too much space when positioned above/bottom the chart #152076

Open dej611 opened 1 year ago

dej611 commented 1 year ago

Describe the feature:

If a heatmap legend is positioned above or bottom the chart is taking too much space than required to render:

Screenshot 2023-02-24 at 11 52 28 Screenshot 2023-02-24 at 11 52 36
elasticmachine commented 1 year ago

Pinging @elastic/kibana-visualizations @elastic/kibana-visualizations-external (Team:Visualizations)

dej611 commented 1 year ago

It seems that Lens is forcing a size of 130px for the legend no matter where is positioned, and the library is applying that in either vertical or horizontal direction no matter what. I've tried to quickly remove this forced padding when the legend is positioned above/below but then the legend is always shown as a single line, ignoring the line numbers configuration.

stratoula commented 7 months ago

I think this will improve with the legends redesign