Closed jakegross808 closed 1 month ago
I went down a few different paths with this, and there's not a ton we can do to change the dataset shown while still being able to see the full dataset (all groups) in a single plot without it being broken down by group. If we add an additional "grouping" level to the sunburst plot though, we can use the sunburst plot or a crosstalk dropdown to look at one or more groups at a time. I added this next to the original plot, since the original plot is still needed to see the overall numbers (not broken down by group). It's not a perfect solution, and worth continuing to pursue other options (maybe a different type of plot next to the overall sunburst, or vice versa?), but hopefully it's helpful!
Is it possible to get a plotly 'type=sunburst' to switch between datasets using a button or dropdown menu?
Here is a simple dataset I am using:
Then, by just changing just one number I can make two different plots:
But I can't find any good online resources showing how to make the dropdown or button approach work for a sunburst plot?