Skip to content

Commit b9ddbc4

Browse files
committed
handle single color converted to rgba array
1 parent 6eb862e commit b9ddbc4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/traces/scatter3d/convert.js

+4
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,10 @@ function arrayToColor(colors) {
350350
return _arrayToColor(colors);
351351
}
352352

353+
if((colors.length === 4) && (typeof colors[0] === 'number')) {
354+
return _arrayToColor(colors);
355+
}
356+
353357
return colors.map(function(color) {
354358
return _arrayToColor(color);
355359
});

0 commit comments

Comments
 (0)