Auto-playing an animation once when a plot is loaded

Hi all,

I’d like to animate a plotly figure once, when it’s loading. The idea is to create an “explosion” effect for a scatter plot, where when the plot is loaded / produced, the plots explode from the centre and settle in their coordinates. It should look a bit like the second part of the animations here: http://mcaule.github.io/d3_exploding_boxplot/, but it should play once automatically when the figure is loaded.

It’s really just to make the graph more playful, and make it clearer that it’s a dynamic plot.

However, at least based on what I could find in the documentation, autoplay animations seem to be implemented with a play / pause button? Is there a way to make this happen?

The graph is produced with the python API in plotly and served with Flask.

Thanks!

Jan

1 Like

Did you ever figure this out? I’m also searching for an answer but couldn’t find any.