79610221

Date: 2025-05-07 09:48:03
Score: 2.5
Natty:
Report link

@ Shailesh gavathe, you can achieve the same as @vestland showed with plotly.express if you specify it in fig,.update_traces.

data = dict(
    character=["Eve", "Cain", "Seth", "Enos", "Noam", "Abel", "Awan", "Enoch", "Azura"],
    parent=["", "Eve", "Eve", "Seth", "Seth", "Eve", "Eve", "Awan", "Eve" ],
    value=[10, 14, 12, 10, 2, 6, 6, 4, 4])

fig = px.sunburst(
    data,
    names='character',
    parents='parent',
    values='value',
)
fig.update_traces(leaf=dict(opacity=1))

Figure

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @vestland
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: mfth