I am new to plotly.js so apologies if this is an easy fix but I can not find an easy fix after much searching.
Essentially I am drawing data to a 3D scatter plot as data comes in, but every time I update the graph with new data, it resets the view point of the camera in the 3D scene. How do I prevent this? I would like to be able to change camera view whilst data is being drawn in real time using orbital / turntable rotation.
Code is as follows:
// Generate random stuff for now.
var stop = false;
var interval = setInterval(function() {
Plotly.extendTraces('dataChart', {
x: [[rand()], [rand()]],
y: [[rand()], [rand()]],
z: [[rand()], [rand()]]
}, [0, 1], MAX_CHAIN_POINTS)
if (stop) {
clearInterval(interval);
}
}, 16);
Any ideas?
Thanks!