Skip to content

Commit 0f2ef23

Browse files
committed
handle typed arrays in parcats
1 parent ca07e89 commit 0f2ef23

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/traces/parcats/defaults.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22

33
var Lib = require('../../lib');
4+
var isTypedArraySpec = require('../../lib/array').isTypedArraySpec;
45
var hasColorscale = require('../../components/colorscale/helpers').hasColorscale;
56
var colorscaleDefaults = require('../../components/colorscale/defaults');
67
var handleDomainDefaults = require('../../plots/domain').defaults;
@@ -44,7 +45,7 @@ function dimensionDefaults(dimensionIn, dimensionOut) {
4445

4546
// Category level
4647
var arrayIn = dimensionIn.categoryarray;
47-
var isValidArray = (Array.isArray(arrayIn) && arrayIn.length > 0);
48+
var isValidArray = (Lib.isArrayOrTypedArray(arrayIn) && arrayIn.length > 0) || isTypedArraySpec(arrayIn);
4849

4950
var orderDefault;
5051
if(isValidArray) orderDefault = 'array';

0 commit comments

Comments
 (0)