Hi,
I am trying to create a Sunburst plot with the following (obfuscated) data:-
import plotly.graph_objects as go
ids = [βid0β, βid1β, βid2β, βid3β, βid4β, βid5β, βid6β, βid7β, βid8β, βid9β, βid10β, βid11β, βid12β, βid13β, βid14β, βid15β, βid16β, βid17β, βid18β, βid19β, βid20β, βid21β, βid22β, βid23β, βid24β, βid25β, βid26β, βid27β, βid28β, βid29β, βid30β, βid31β, βid32β, βid33β, βid34β, βid35β, βid36β, βid37β, βid38β, βid39β, βid40β, βid41β, βid42β, βid43β, βid44β, βid45β, βid46β, βid47β, βid48β, βid49β]
labels = [βaβ, βbβ, βcβ, βuuβ, βeβ, βgβ, βiβ, βkβ, βmβ, βoβ, βaaβ, βqβ, βsβ, βlfβ, βbbβ, βccβ, βddβ, βeeβ, βffβ, βggβ, βhhβ, βiiβ, βjjβ, βkkβ, βllβ, βmmβ, βlbβ, βnnβ, βooβ, βdβ, βfβ, βhβ, βjβ, βlβ, βnβ, βpβ, βrβ, βtβ, βuβ, βvβ, βw1β, βw2β, βxβ, βyβ, βppβ, βqqβ, βv.cβ, βzβ, βw1β, βx.rrβ]
parents = [ββ, βaβ, βbβ, βcβ, βuuβ, βeβ, βgβ, βiβ, βkβ, βmβ, βoβ, βoβ, βqβ, βsβ, βlfβ, βlfβ, βlfβ, βlfβ, βlfβ, βlfβ, βlfβ, βlfβ, βlfβ, βlfβ, βlfβ, βlfβ, βsβ, βlbβ, βlbβ, βbβ, βdβ, βfβ, βhβ, βjβ, βlβ, βnβ, βpβ, βrβ, βtβ, βuβ, βvβ, βw1β, βw2β, βxβ, βyβ, βyβ, βuβ, βv.cβ, βv.cβ, βw1β]
text = [βaβ, βbβ, βcβ, βuuβ, βeβ, βgβ, βiβ, βkβ, βmβ, βoβ, βaaβ, βqβ, βsβ, βlfβ, βbbβ, βccβ, βddβ, βeeβ, βffβ, βggβ, βhhβ, βiiβ, βjjβ, βkkβ, βllβ, βmmβ, βlbβ, βnnβ, βooβ, βdβ, βfβ, βhβ, βjβ, βlβ, βnβ, βpβ, βrβ, βtβ, βuβ, βvβ, βw1β, βw2β, βxβ, βyβ, βppβ, βqqβ, βv.cβ, βzβ, βw1β, βx.rrβ]
fig = go.Figure(go.Sunburst(labels=labels, parents=parents, text=text, textinfo=βtextβ, hoverinfo=βtextβ))
fig.update_layout(margin=dict(t=0, l=0, r=0, b=0))
fig.show()
It is failing because of the w1 entry, which shows up in two different levels of hierarchy. But I thought if unique ids were used for each label, a repeated label would not be a problem. If I add ids=ids to the go.Sunburst arguments, it does not change the outcome. I am using Plotly 5.16.1. Is this a bug or is something formatted incorrectly?