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

add Interactive Legends for Plotly Express Sunburst Charts #4692

Open
mlouis9 opened this issue Jul 24, 2024 · 2 comments
Open

add Interactive Legends for Plotly Express Sunburst Charts #4692

mlouis9 opened this issue Jul 24, 2024 · 2 comments
Labels
feature something new P3 not needed for current cycle

Comments

@mlouis9
Copy link

mlouis9 commented Jul 24, 2024

Motivation

I'm a huge fan of Plotly Express Sunburst charts, but when viewing data with lots of small proportions (that are meaningful), it can be difficult to expand individual wedges because they're so small.

A Solution

I think it might be nice if there was a scrollable, clickable legend listing all of the inner wedges of the pie chart. I've included an an example .html spec that I hacked together by wrapping the plotly html. Clicking on the label in the legend expands the corresponding wedge in the sunburst chart. I'm not sure how feasible something like this is, but I think it might be a nice feature.

@archmoj
Copy link
Contributor

archmoj commented Jul 24, 2024

Is this the duplicate of plotly/plotly.js#4760?

@mlouis9
Copy link
Author

mlouis9 commented Jul 24, 2024

Not quite; the suggested addition is to deal with wedges that are too small to click on by hovering over them by adding an interactive legend showing the inner wedges of the sunburst. As far as I can tell by looking at the example in the linked issue, it doesn't implement the type of legend included in the html spec I linked here and still has issues with small wedges.

@gvwilson gvwilson assigned gvwilson and unassigned gvwilson Jul 26, 2024
@gvwilson gvwilson added the P3 not needed for current cycle label Aug 12, 2024
@gvwilson gvwilson changed the title [FEATURE REQUEST] Interactive Legends for Plotly Express Sunburst Charts add Interactive Legends for Plotly Express Sunburst Charts Aug 13, 2024
@gvwilson gvwilson added the feature something new label Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature something new P3 not needed for current cycle
Projects
None yet
Development

No branches or pull requests

3 participants