Change legend marker size for Plotly scatter plot (bubble chart) in Python

Viewed 2282

As I started modifying the Categorical Bubble Charts example found here, the size of the markers in the legend became so small they could not be seen.

Is there a way to control the legend marker size without changing the marker size in the plot?

1 Answers

The comment by anbjork found here gave me a great workaround:

fig.update_layout(legend= {'itemsizing': 'constant'})
Related