I’m trying to animate a 3D surface plot with the slider. And I’m following the Gapminder exmple. In the example it says
layout has two different key
sliders. However when I try to set
figure['layout']['slider'] I get the following error:
plotly.exceptions.PlotlyDictKeyError: 'slider' is not allowed in 'layout' Path To Error: ['layout']['slider']
So is the example wrong or am I missing something? If I remove the
slider dictionary then the figure does have a slider but it doesn’t update the plot when the slider is moved.
Currently the animation plays all the frames when you load the page. I would like it to stay on the first frame and just update when slider value is changed. Is it possible to do that with plotly?
I can paste the code if that’ll help but it creates the slider in the exact same manner as the example does.
Any help is much appreciated.