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

Mosaic plot #1578

Open
adrien-cahoreau opened this issue May 11, 2022 · 4 comments
Open

Mosaic plot #1578

adrien-cahoreau opened this issue May 11, 2022 · 4 comments
Assignees
Labels
enhancement New feature or request ux / ui Improvements or additions to user experience, flows, components, UI elements visualizations Issues and PRs related to visualizations

Comments

@adrien-cahoreau
Copy link

Is your feature request related to a problem? Please describe.

As a visual alternative to crosstabs, I wish a concise way to display sub-aggregations and compare their values (more easily than two-layer pie charts and stacked bar charts).
It appears to me not visually easy to compare sub-aggregation's values on a pie chart.
A percent stacked bar plot allows a better visual comparison (between bars in the same bounds), but does not display the raw count value (only the percentage value).

A mosaic plot should allow to display both raw values and percentage values like in this example.
A mosaic plot appears to me also more readable as the group names and their values can be displayed in the plot itself (not as axes or legend).

Describe the solution you'd like

kibana-mosaic

Mosaic plots are often preferred over full, two-layer sunburst such as this. If the secondary partitioning is shared, e.g. regions in the example above, then sideways comparison is way more feasible than in the case of sunburst or treemap. In this case, the region order should be shared too.

Describe alternatives you've considered

Implemented in Kibana 8.1 : elastic/kibana#104223

@adrien-cahoreau adrien-cahoreau added the enhancement New feature or request label May 11, 2022
@kavilla
Copy link
Member

kavilla commented May 16, 2022

Hello @adrien-cahoreau,

Thanks for opening!

Tagging UI/UX for follow-up.

@kavilla kavilla added the ux / ui Improvements or additions to user experience, flows, components, UI elements label May 16, 2022
@kgcreative
Copy link
Member

Thanks @kavilla - Tagging @btzeng and adding to backlog.

@ahopp
Copy link
Contributor

ahopp commented May 31, 2022

Yeah, this is a great addition! Thanks @adrien-cahoreau

RE: sunburst, while I understand the justification of preference (and generally agree), from an engineering standpoint we might want to consider building different mosaic-like chart types while we're working on this. I think a sunburst chart (here) is the same data with the same hierarchy laid out differently and would require similar "knobs" so might be worth investing the work just once.

In a similar vein, we should consider adding treemap (here) while we here since they work very similarly but we'd nest/subdivide rectangles inside each other recursively.

Lastly, I think we should add some more options for legends then offered in the Elastic Charts example...I personally hate it when I can't adjust the positioning and prominence when I make dense mosaic plots/charts. I also often like to "roll-up" the long-tail values into a single "other" bucket.

@joshuarrrr
Copy link
Member

joshuarrrr commented Dec 20, 2022

@ahopp We already support sunburst-style charts via the Pie Chart visualization. By adding more than one Split Slices bucket aggregation, you can nest multiple levels. (We could do a lot to improve this, both from the UI perspective and look and feel), but the aggregation and data structure is already there.
Screen Shot 2022-12-19 at 5 38 50 PM

@joshuarrrr joshuarrrr added the visualizations Issues and PRs related to visualizations label May 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ux / ui Improvements or additions to user experience, flows, components, UI elements visualizations Issues and PRs related to visualizations
Projects
None yet
Development

No branches or pull requests

6 participants