In my code, when I change the font size with a smaller value, the legend box does not adapt to the new size. Do you know what attribute I can add to be able to adjust the box size?
The library used is Plotly.
fig.update_layout(showlegend=True, height=500, width=1000, title_text="Analysis of Latency",
legend=dict(
x=0, y=1,traceorder="normal",font=dict(size=10),bgcolor="WhiteSmoke")

