We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94dff5c commit 9d5d65dCopy full SHA for 9d5d65d
src/traces/image/defaults.js
@@ -24,8 +24,8 @@ module.exports = function supplyDefaults(traceIn, traceOut) {
24
coerce('z');
25
coerce('colormodel');
26
27
- coerce('zmin', constants.colormodel[traceOut.colormodel][0]);
28
- coerce('zmax', constants.colormodel[traceOut.colormodel][1]);
+ coerce('zmin', constants.colormodel[traceOut.colormodel].min);
+ coerce('zmax', constants.colormodel[traceOut.colormodel].max);
29
var dims = traceOut.colormodel.length;
30
var dfltHovertemplate = '<span style="text-transform:uppercase">%{colormodel}</span>: [%{z[0]}, %{z[1]}, %{z[2]}' + (dims === 4 ? ', %{z[3]}' : '') + ']';
31
coerce('hovertemplate', dfltHovertemplate);
0 commit comments