Hello,
I’m struggling to make an animation with Graph objects and Frames. So I tried to do it step by step. First step is simply to scroll the chart when the “Play” button is clicked. In order to do so, I updated the layout part in the frames (I’m not sure it’s the right way to do it). But as soon as the graph is shown, it constantly moves backwards and forwards (while I haven’t even pushed the “Play” button yet).
So, what’s wrong with my code?
layout = go.Layout(xaxis={"range":[0, 100], "autorange":False},
yaxis={"range":[0, 100], "autorange":False},
updatemenus=[dict(type="buttons", buttons=[dict(label="Play", method="animate", args=[None])])])
frames = [go.Frame(layout=go.Layout(xaxis={"range": [i, 100 + i]})) for i in range(1, 11)]
fig = go.Figure(layout=layout, frames=frames)
fig.show()