Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9d5d65d

Browse files
committed
fix
1 parent 94dff5c commit 9d5d65d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/traces/image/defaults.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ module.exports = function supplyDefaults(traceIn, traceOut) {
2424
coerce('z');
2525
coerce('colormodel');
2626

27-
coerce('zmin', constants.colormodel[traceOut.colormodel][0]);
28-
coerce('zmax', constants.colormodel[traceOut.colormodel][1]);
27+
coerce('zmin', constants.colormodel[traceOut.colormodel].min);
28+
coerce('zmax', constants.colormodel[traceOut.colormodel].max);
2929
var dims = traceOut.colormodel.length;
3030
var dfltHovertemplate = '<span style="text-transform:uppercase">%{colormodel}</span>: [%{z[0]}, %{z[1]}, %{z[2]}' + (dims === 4 ? ', %{z[3]}' : '') + ']';
3131
coerce('hovertemplate', dfltHovertemplate);

0 commit comments

Comments
 (0)