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

Hide labels that do not fit into treemap partition than truncate them #2382

Open
dej611 opened this issue Mar 27, 2024 · 3 comments
Open

Hide labels that do not fit into treemap partition than truncate them #2382

dej611 opened this issue Mar 27, 2024 · 3 comments
Labels
enhancement New feature or request Impact:Low :partition Partition/PieChart/Donut/Sunburst/Treemap chart related

Comments

@dej611
Copy link
Contributor

dej611 commented Mar 27, 2024

Mosaic can be configured to show many categories at once, sometimes leading to short "slices" that cannot fit the entire label:

Screenshot 2024-03-27 at 14 49 15

In these cases I think it makes sense to apply the same hiding logic used for XY labels.

@dej611 dej611 added enhancement New feature or request Impact:Low labels Mar 27, 2024
@nickofthyme nickofthyme transferred this issue from elastic/kibana Mar 27, 2024
@elastic elastic deleted a comment from elasticmachine Mar 27, 2024
@nickofthyme nickofthyme changed the title [Lens] Better hide labels that do not fit into Mosaic partition than truncate them Hide labels that do not fit into Mosaic partition than truncate them Mar 27, 2024
@nickofthyme nickofthyme added the :partition Partition/PieChart/Donut/Sunburst/Treemap chart related label Mar 27, 2024
@nickofthyme nickofthyme changed the title Hide labels that do not fit into Mosaic partition than truncate them Hide labels that do not fit into treemap partition than truncate them Mar 27, 2024
@markov00
Copy link
Member

What would be the benefit if I hide some labels? in XY the labels overlaps on other categories (that is something we are also going to replace with wrap/multi-line). Here I kindly suggest not to make labels protrude onto other groups to avoid misunderstanding.

The example charts can definitely be revisited as a horizontal bar chart that for sure improves the data readability.
Mosaic is not meant for such a high number of categories, probably 3/4 max 5 columns are the max to have a good understanding of the underlying data.

@dej611
Copy link
Contributor Author

dej611 commented Mar 29, 2024

Horizontal bar require a vertical layout which is not always available.
I see a heatmap-like visualization to be something that overlaps this specific scenario, but in heatmap case the legend is showing already values-color coding mapping.

@gvnmagni
Copy link

gvnmagni commented Apr 4, 2024

One little concern that I have is that if we only rely on the legend we could potentially have multiple series with the same color since we are looping colors. I know that it is clearly not ideal to have label that are so little that are unreadable, but that should be a clue for the user that the chart might have some issues.

I am afraid that legend alone might be unclear (two identical greens for example)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Impact:Low :partition Partition/PieChart/Donut/Sunburst/Treemap chart related
Projects
None yet
Development

No branches or pull requests

4 participants