Skip to content

Commit fe11446

Browse files
committed
add zauto example
1 parent db639a4 commit fe11446

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

_posts/plotly_js/fundamentals/plotly-js-3-changes/2024-10-09-plotly-js-3-changes.md

+28
Original file line numberDiff line numberDiff line change
@@ -319,4 +319,32 @@ Transforms have been removed.
319319

320320
The `zauto`, `zmin`, and `zmax` attributes have been removed on surface traces. Use `cauto`, `cmin`, and `cmax` instead.
321321

322+
```JavaScript
323+
var data = [{
324+
z: [
325+
[1, 20, 30, 50],
326+
[20, 1, 60, 80],
327+
[30, 60, 1, 100],
328+
[50, 80, 100, 1]
329+
],
330+
type: 'surface',
331+
zauto: false,
332+
zmin: 0,
333+
zmax: 100
334+
}];
335+
```
322336

337+
```JavaScript
338+
var data = [{
339+
z: [
340+
[1, 20, 30, 50],
341+
[20, 1, 60, 80],
342+
[30, 60, 1, 100],
343+
[50, 80, 100, 1]
344+
],
345+
type: 'surface',
346+
cauto: false,
347+
cmin: 0,
348+
cmax: 100
349+
}];
350+
```

0 commit comments

Comments
 (0)