Can't relayout plot for scatter3d

Hi, can’t dynamically modify the Range
var data = [
{
type: ‘scatter3d’,
scene: “scene”,
mode: ‘lines’,
x: xxF,
y: yyF,
z: zzF,
name: ‘tmp’,
line: {
dash: ‘solid’,
width: 5,
color: ‘#00B16A’,
},

            ....]


Plotly.newPlot(‘myDiv’, data, layout, defaultPlotlyConfiguration);

function updatet() {
Plotly.relayout(‘myDiv’, ‘zaxis.range’, [[2, 3]]);
}

function updatet() {
  Plotly.relayout(‘myDiv’, 'scene.zaxis.range', [2, 3]);
}

should work.

1 Like