Sunburst color levels can’t made the same on a single level unless they have the same number of children. I think the solution would be if I could force the sunburst to use the darkest gradient for each color on the first level, regardless of the # of children for each branch. Is that possible?
p <- plot_ly(labels = c("Eve", "Cain", "Seth", "Enos", "Noam", "Abel", "Awan", "Enoch", "Azura"),
parents = c("", "Eve", "Eve", "Seth", "Seth", "Eve", "Eve", "Awan", "Eve"),
values = c(65, 14, 12, 10, 2, 6, 6, 4, 4),
type = 'sunburst',
branchvalues = 'total')
layout(p, colorway = c("#EE5859", "#EE5859", "#D2CBB8", "#585859", "#AAAAAA"))
p <- plot_ly(labels = c("Eve", "Cain", "Seth", "Enos", "Noam", "Abel", "Awan", "Enoch", "Azura"),
parents = c("", "Eve", "Eve", "Seth", "Seth", "Eve", "Eve", "Awan", "Eve"),
values = c(65, 14, 12, 10, 2, 6, 6, 4, 4),
type = 'sunburst',
branchvalues = 'total')
layout(p, colorway = c("#EE5859", "#D2CBB8", "#EE5859", "#585859", "#AAAAAA"))