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

Skip to content

Commit e8446b1

Browse files
authored
Merge pull request plotly#783 from wobenshain/master
Proposed fix to Issue plotly#782
2 parents e139925 + 04dc616 commit e8446b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/traces/heatmap/calc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,9 +219,9 @@ function makeBoundArray(trace, arrayIn, v0In, dvIn, numbricks, ax) {
219219
else {
220220
dv = dvIn || 1;
221221

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

227227
for(i = (isContour || isGL2D) ? 0 : -0.5; i < numbricks; i++) {

0 commit comments

Comments
 (0)