Sunburst Hover Data

Yep makes sense. Try a few other things to get this to show/be recognized:

  1. Using graph objects instead of express, can you force it into the hierarchy with blank parents up the chain (the center most parent is already blank)? I.e. tie the extra value to every hierarchy level with zeroes maybe (?)

Branch Values section here shows how the structure is written

  1. Try custom values in the hover. This is listed as available with px but c you can reference an example of using customdata in the hovertemplate posted by @empet earlier for a scatterplot How to selecting columns in dataframe for hovertemplate?

See the docs custom_data under parameters: plotly.express.sunburst β€” 5.8.0 documentation

The challenge with customdata is (I think) you’ll have to rewrite the whole hover whereas you just want to add one value and keep the rest of the existing hover.

I’ve used customdata really well in a bar chart but haven’t tried with sunburst. These options can be specific to chart type in my experience but give it a try.