How can I remove the Root Container in a Plotly Graph Objects Treemap?

Hello,

I am wanting to either remove or change the opacity of the root container in this graph objests treemap so it does not appear as black. I tried the to change the root_color in graph objects but I think that only exists in plotly express? Is there a way this can be done in graph objects?

Thank you,

Updating the root color was possible in the example in the go.Treemap Basic for graph objects.

fig.update_traces(root_color="whitesmoke")

1 Like