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

[Legend] Better usage of space when stats are enabled and legend is positioned either at top or bottom #2617

Open
dej611 opened this issue Feb 20, 2025 · 1 comment
Labels
enhancement New feature or request :legend Legend related issue

Comments

@dej611
Copy link
Contributor

dej611 commented Feb 20, 2025

Describe the issue

Take a legend with a long enough list of stats displayed:

Image

The name column is taking half of the space no matter what to render and the stats is taking the remaining space.
If the stats table is filled enough it can overflow on the right.

It is possible to reproduce also in the charts storybook with a long list of stats: https://elastic.github.io/elastic-charts/storybook/?path=/story/legend--tabular-data&globals=toggles.showHeader:true;toggles.showChartTitle:false;toggles.showChartDescription:false;toggles.showChartBoundary:false;theme:light

Expected behaviour
A better usage of screen space?

@dej611 dej611 added :legend Legend related issue enhancement New feature or request labels Feb 20, 2025
@gvnmagni
Copy link

Interesting, thank you for pointing this out Marco, we should probably revisit a bit our column logic here which I don't fully remember but I do recall a conversation about it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request :legend Legend related issue
Projects
None yet
Development

No branches or pull requests

2 participants