E.g. for the following scatter plot example show in the offical document, how to add a categorical, rather than continuous, color legend for the four circles with different x values?
Do I have to add each circle using a trace to get the categorical, or discreet, color legend?
import plotly.graph_objects as go
fig = go.Figure(data=go.Scatter(
x=[1, 2, 3, 4],
y=[10, 11, 12, 13],
mode='markers',
marker=dict(size=[40, 60, 80, 100],
color=[0, 1, 2, 3])
))
fig.show()