6.2.1 Advanced Scatter Chart

1. Bubble Chart with Colorbar

fig = go.Figure(data=go.Scatter(
    y = np.random.randn(500),mode='markers',
    marker=dict(
        size=24,
        color=np.random.randn(500), #set color equal to a variable
        colorscale='RdBu', # one of plotly colorscales
        showscale=True)
))
fig.update_layout(template= 'plotly_dark')
fig.show()
Bubble Chart with Colorbar

2. Bubble Charts with Colorscale

Bubble Chart with Colorscale

3. Bubble chart

Sophiscated Bubble Chart

4. Bubble Chart Animation

Bubble Chart with animation

Last updated