Tejas nayak
Tejas nayak

Reputation: 54

Hide Plotly Dash Sunburst Hover label

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']

enter image description here

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

Answers (1)

Irgendniemand
Irgendniemand

Reputation: 236

Below you find an example from the plotly website. It should work the same for sunbursts

Scatter Example

Upvotes: 2

Related Questions