How can we implement mouse wheel zoom

I tried this code but it did not worked →
import plotly.graph_objects as go

fig = go.Figure()

config = dict({‘scrollZoom’: True})

fig.add_trace(
go.Scatter(
x=[1, 2, 3],
y=[1, 3, 1]))

fig.show(config=config)

plotly.offline.plot(fig, filename=‘try_plot1.html’, auto_open=True)

Is there any way by which I can make mouse wheel zoom in my plots?

Thanks in advance

1 Like

Did you ever find the answer?

changing the last line into:

plotly.offline.plot(fig, filename=‘try_plot1.html’, auto_open=True, config=config)

worked for me.