We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca07e89 commit 0f2ef23Copy full SHA for 0f2ef23
src/traces/parcats/defaults.js
@@ -1,6 +1,7 @@
1
'use strict';
2
3
var Lib = require('../../lib');
4
+var isTypedArraySpec = require('../../lib/array').isTypedArraySpec;
5
var hasColorscale = require('../../components/colorscale/helpers').hasColorscale;
6
var colorscaleDefaults = require('../../components/colorscale/defaults');
7
var handleDomainDefaults = require('../../plots/domain').defaults;
@@ -44,7 +45,7 @@ function dimensionDefaults(dimensionIn, dimensionOut) {
44
45
46
// Category level
47
var arrayIn = dimensionIn.categoryarray;
- var isValidArray = (Array.isArray(arrayIn) && arrayIn.length > 0);
48
+ var isValidArray = (Lib.isArrayOrTypedArray(arrayIn) && arrayIn.length > 0) || isTypedArraySpec(arrayIn);
49
50
var orderDefault;
51
if(isValidArray) orderDefault = 'array';
0 commit comments