File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
3
var Lib = require ( '../../lib' ) ;
4
+ var isTypedArraySpec = require ( '../../lib/array' ) . isTypedArraySpec ;
4
5
var hasColorscale = require ( '../../components/colorscale/helpers' ) . hasColorscale ;
5
6
var colorscaleDefaults = require ( '../../components/colorscale/defaults' ) ;
6
7
var handleDomainDefaults = require ( '../../plots/domain' ) . defaults ;
@@ -44,7 +45,7 @@ function dimensionDefaults(dimensionIn, dimensionOut) {
44
45
45
46
// Category level
46
47
var arrayIn = dimensionIn . categoryarray ;
47
- var isValidArray = ( Array . isArray ( arrayIn ) && arrayIn . length > 0 ) ;
48
+ var isValidArray = ( Lib . isArrayOrTypedArray ( arrayIn ) && arrayIn . length > 0 ) || isTypedArraySpec ( arrayIn ) ;
48
49
49
50
var orderDefault ;
50
51
if ( isValidArray ) orderDefault = 'array' ;
You can’t perform that action at this time.
0 commit comments