Realtime update of a 3d scatter plot in dash

Hi all,
I am trying to make an app that update random x,y,z positions in realtime 3D plot in dash.
Here is the code that I have made so far.

Issue is that it is not working as expected. If I refresh the page, it comes up with latest data. I have already created the animation in 2D. But What I am looking for is something similar to

Hope someone can help me out. Thanks.