Skip to content

Commit f878387

Browse files
committed
heatmap: only sort categorical axes for trace type heatmap
1 parent 56c6a4d commit f878387

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/traces/heatmap/clean_2d_array.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ module.exports = function clean2dArray(zOld, transpose, trace, xa, ya) {
3232

3333
var xMap = function(i) {return i;};
3434
var yMap = function(i) {return i;};
35-
if(trace.type !== 'contour') {
35+
if(trace.type === 'heatmap') {
3636
if(ya && ya.type === 'category') {
3737
yMap = function(i) {return trace._y[i];};
3838
}

0 commit comments

Comments
 (0)