Closed
Description
Reported in the community forum https://community.plotly.com/t/plotly-sunburst-node-colors/41037
import plotly.express as px
import numpy as np
df = px.data.gapminder().query("year == 2007")
fig = px.sunburst(df, path=['continent', 'country'], values='lifeExp',
color='lifeExp',
color_continuous_scale='RdBu')
fig.show()
The color of a sector should be the average of its children but it seems to be the sum for this case.