Reputation: 54
I am unable to hide the label, division and parent from hover tooltips
path=[pune,division,taluka,village]
value = df['Project Count'].tolist()
fig_sunburst = px.sunburst(df, path=path, values=value,
color='Division',title="Taluka Wise Project Count")
fig_sunburst.update_traces(hoverinfo = 'ids+value')
df is a dataframe with the column ['Pune','division','taluka','village','Project Count']
When I hover over Khed taluka I get the tooltip as shown above. I want the id to be displayed first then the value. Rest all should be hidden. Also how can I rename value to 'Project Count'
Upvotes: 0
Views: 809
Reputation: 236
Below you find an example from the plotly website. It should work the same for sunbursts
Upvotes: 2