Skip to content

Commit f9b5ebd

Browse files
committed
makeBoundArray: fix case where v0In is undefined
1 parent 35cd161 commit f9b5ebd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/traces/heatmap/calc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ function makeBoundArray(trace, arrayIn, v0In, dvIn, numbricks, ax) {
220220
dv = dvIn || 1;
221221

222222
if(Array.isArray(arrayIn) && arrayIn.length === 1) v0 = arrayIn[0];
223-
else if(v0In === undefined) v0 = v0In;
223+
else if(v0In === undefined) v0 = 0;
224224
else if(isHist || ax.type === 'category') v0 = v0In;
225225
else v0 = ax.d2c(v0In);
226226

0 commit comments

Comments
 (0)