Hi, I want y-axis to be the vertical axis of scatter3d graph.
not like this;
like this;
I rename the title of y-axis to “z”, and z-axis to “y” but text in those labels do not change, so it was useless.
What is the most smartest way to fix?
Thanks.
Edit:
I suppose I solved it
// array x, y and z is defined
var text = ;
for(var i=0;i<data.lenegth;i++){
text.push('x: ‘+x[i]+’
y: ‘+y[i]+’
z: '+y[i]);
}
var trace = {
x:x,y:z,z:y,
text:text,
hoverinfo:‘text+name’,
scene:‘scene’
}
var layout = {
scene:{
xaxis:{title:‘x’},
yaxis:{title:‘z’},
zaxis:{title:‘y’}
}
}