How can I display percentage subtotals at each category level in treemap chart?

This is pretty old already, but in case somebody stumbles upon it: I think using textinfo only defines which values are displayed at the lowest level, so it doesn’t really answer the original question. Correct me if I’m wrong.

But regarding the syntax question, you can set it using any combination of these values separated by a plus sign (+): 'label', 'text', 'value', 'current path', 'percent root', 'percent entry', 'percent parent'. For example:

fig.data[0].textinfo = 'percent parent+percent root+parent entry}'

This will show something like this:

55% of parent
34% of entry
34% of root

1 Like