I don’t know if i’m doing something wrong but every time i change the range of the axes it just stays the same.
The Code:
Plotly.d3.csv('data.csv', function(err, rows){
function unpack(rows, key) {
return rows.map(function(row) { return row[key]; });
}
var z_data=[ ]
for(i=0;i<24;i++){
z_data.push(unpack(rows,i));
}
var data = [{
z: z_data,
type: 'surface'
}];
var layout = {
title: 'Test: Sensor-Werte: MPU6050',
xaxis: {range: [-100,100]},
zaxis: {range: [100, 100]},
width: 1200,
height: 1200,
};
Plotly.newPlot('myDiv', data, layout);
});
The current Output