Is there any way to remove some of the default headings from the sunburst ‘hover data’. For instance below, I would like to remove ‘labels’, ‘parent’ and ‘id’, only leaving ‘Total Heat Loss (kWh)’ and ‘Area / Length’.
I have tried the hover_data parameter within the sunburst set up, however this only removes columns within the dataframe I have fed in.
import plotly.express as px
df = px.data.tips()
fig = px.sunburst(df, path=['day', 'time', 'sex'], values='total_bill')
fig.update_traces(hovertemplate='<b>the total bill is: %{value} </b>') # parent, or label, or id, or value
fig.show()
Hi @BenArnold . I just updated my answer. hove_data is for other graphs type. I forgot that’s it’s different for the sunburst. Let me know if that worked for you.