Skip to content
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

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

Open
dej611 opened this issue Feb 24, 2023 · 3 comments
Labels
enhancement New value added to drive a business result Feature:Lens impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@dej611
Copy link
Contributor

dej611 commented Feb 24, 2023

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

@dej611 dej611 added enhancement New value added to drive a business result Team:Visualizations Visualization editors, elastic-charts and infrastructure Feature:Lens labels Feb 24, 2023
@elasticmachine
Copy link
Contributor

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

@dej611
Copy link
Contributor Author

dej611 commented Feb 24, 2023

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.

@dej611 dej611 added the impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. label Feb 24, 2023
@stratoula
Copy link
Contributor

I think this will improve with the legends redesign

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New value added to drive a business result Feature:Lens impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

No branches or pull requests

5 participants