Skip to content

Commit 7e4a6ad

Browse files
author
Jon M. Mease
committed
Handle line.color as TypedArray
1 parent 870ff82 commit 7e4a6ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/traces/parcats/calc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ module.exports = function calc(gd, trace) {
103103
var value;
104104
if(!line) {
105105
value = parcatConstants.defaultColor;
106-
} else if(Array.isArray(line.color)) {
106+
} else if(Lib.isArrayOrTypedArray(line.color)) {
107107
value = line.color[index % line.color.length];
108108
} else {
109109
value = line.color;

0 commit comments

Comments
 (0)