This is my code:
fig = px.sunburst(df2, path=['Year', 'Quarter', 'Month'], values='V',
color='R',
color_continuous_scale='RdYlGn', color_continuous_midpoint=0
)
I want to reduce the space between the chart and its scale:
Thanks in advance!

I cannot find anything in the documentation about the padding between the sunburst chart and the colorbar except for setting a tight layout, but this doesn't reduce the padding by very much if at all. In general, the Plotly library gives you great interactive visualizations at the cost of tunability - especially
plotly.expressinstead ofplotly.graph_objects.A good starting point might be to poke around in
fig.layout.templateas this shows you exactly what charts are used to create the sunburst chart and which of these parameters you might be able to modify (especially to change a parameter outside of the scope of the documentation)A pretty hacky solution I thought of that might work, but might also change your aesthetic, would be increasing the thickness of the colorbar to decrease the space between the sunburst chart and colorbar itself. Here is an example: