Skip to content

Commit 0510f2f

Browse files
lvltearchmoj
andauthored
Keep specific warnings
Co-authored-by: Mojtaba Samimi <33888540+archmoj@users.noreply.github.com>
1 parent 85bc5e4 commit 0510f2f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/traces/heatmap/calc.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,10 @@ module.exports = function calc(gd, trace) {
109109
if(zsmooth === 'fast') {
110110
noZsmooth('log axis found');
111111
}
112-
} else if(!scaleIsLinear(x) || !scaleIsLinear(y)) {
113-
if(zsmooth === 'fast') {
114-
noZsmooth('x/y scale is not linear');
115-
}
112+
} else if(!scaleIsLinear(x)) {
113+
if(zsmooth === 'fast') noZsmooth('x scale is not linear');
114+
} else if(!scaleIsLinear(y)) {
115+
if(zsmooth === 'fast') noZsmooth('y scale is not linear');
116116
} else {
117117
trace._islinear = true;
118118
}

0 commit comments

Comments
 (0)