2025.42 changes
This commit is contained in:
@@ -17,5 +17,9 @@ if __name__ == '__main__':
|
||||
})
|
||||
plot = sunburst(df, path=["country", "city"], values="sales", title="Sales by country and city", template="ggplot2",
|
||||
color_discrete_sequence=plotly.colors.qualitative.Dark2)
|
||||
plot.layout.update({"font": {"family": "Cabin", "size": 13}})
|
||||
plot.show()
|
||||
sb = next(plot.select_traces(row=0, col=0))
|
||||
sb.textinfo="label+percent parent"
|
||||
# sb.texttemplate="%{label}<br>%{value:.2f}€"
|
||||
plot.layout.update({"font": {"family": "Cabin", "size": 13}, "showlegend": True})
|
||||
# plot.update_traces(textinfo="label+percent parent", texttemplate="%{label}<br>%{value:.2f}€")
|
||||
plot.show(renderer="browser")
|
||||
|
||||
Reference in New Issue
Block a user