Sunburst configuration

Hi,

I'm starting using new Retool components and specially new Sunburst component..

As anyone could see using it, the data architecture is weardly structured, as the proportion between each level shares and proportion of the displayed circles are not respected.

Example here with Retool demo chart, in which a 60% + 40% secondary level are displayed as (nearly) 2/3 of the corresponding Root, instead of 100%.

Hey @Laurin_Boujon1,

I agree this is weirdly unintuitive. I went through the plotly documentation on Sunburst Charts and noticed it's how plotly intended for the chart to work and isn't a issue with Retool itself.

In this example I set the the following values:
Labels: ["Eve", "Cain", "Seth", "Enos", "Noam", "Abel", "Awan", "Enoch", "Azura"]
Parents: ["", "Eve", "Eve", "Seth", "Seth", "Eve", "Eve", "Awan", "Eve" ]
Values: [10, 14, 12, 10, 2, 6, 6, 4, 4]

Hey @AbbeyHernandez !

Wow, surprised Plotly developed something that unintuitive :face_with_peeking_eye:
Thank's for your quick response!

1 Like

You're absolutely right! After looking into it further, I found that the Sunburst function includes a branchvalues parameter, which can be set to total to achieve the desired behavior. It turns out our chart already has this setting in place! :blush:

1 Like