Simple 3D surface rotate

Hi, I’m looking to have my 3D surface plot rotate around the z axis from the centre of the graph. I’m fairley new to Plotly.js and was just wondering what the easiest way to do this was. I’ve seen 1 or 2 other rotating solutions however they seemed to ‘skip’ part of the graph’s full rotation as it went around. Is there a way to have a smooth, continuous rotation? if so what is the easiest way of implementing it?


I’m not exactly sure what you’re trying to do but this should help:

I am not able to vertically rotate, this only gives horizontal rotation.

maybe you can share a code snippet of what you tried so far to help us help you?