Skip to content

Commit ae04cad

Browse files
committed
handle typed arrays for polar
1 parent c7f0e10 commit ae04cad

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/traces/scatterpolar/defaults.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,14 @@ function supplyDefaults(traceIn, traceOut, defaultColor, layout) {
7070
function handleRThetaDefaults(traceIn, traceOut, layout, coerce) {
7171
var r = coerce('r');
7272
var theta = coerce('theta');
73+
74+
if(Lib.isTypedArray(r)) {
75+
traceOut.r = r = Array.from(r);
76+
}
77+
if(Lib.isTypedArray(theta)) {
78+
traceOut.theta = theta = Array.from(theta);
79+
}
80+
7381
var len;
7482

7583
if(r) {

0 commit comments

Comments
 (0)