Convert phylogenetic tree to plotly graph

Hi again - thanks for all your help.

I was wondering if there is an easy way to make a color density of the different nodes in the graph:

color = PANDAS_DATAFRAME[VALUE_TO_COLOR]
colorscale=β€˜Viridis’,
showscale=True

So I have tried to add color= PANDAS_DATAFRAME[VALUE_TO_COLOR] which gives me the right colorbar - the problem is that all the sub-nodes gets taken into account even though they should not be regarding for the coloring. Do u know how to fix this? Thanks!