Skip to content

Commit 24301b3

Browse files
committed
pass colorBounds to createSurface using zmin and zmax
1 parent ffa0af7 commit 24301b3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/traces/surface/convert.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ proto.update = function(data) {
250250
dynamicWidth: [1, 1, 1],
251251
dynamicTint: [1, 1, 1],
252252
opacity: 1,
253+
colorBounds: [data.zmin * scaleFactor[2], data.zmax * scaleFactor[2]]
253254
};
254255

255256

0 commit comments

Comments
 (0)