Skip to content

Commit 505a14e

Browse files
if sizemode === quartiles, don't use boxmean
Co-authored-by: Alex Johnson <[email protected]>
1 parent b3812f8 commit 505a14e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/traces/box/defaults.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,12 @@ function supplyDefaults(traceIn, traceOut, defaultColor, layout) {
4040
if(sd && sd.length) boxmeanDflt = 'sd';
4141
}
4242
}
43-
coerce('boxmean', boxmeanDflt);
4443

4544
coerce('whiskerwidth');
4645
var sizemode = coerce('sizemode');
46+
if (sizemode === 'quartiles') {
47+
coerce('boxmean', boxmeanDflt);
48+
}
4749
coerce('showwhiskers', sizemode === 'quartiles');
4850
coerce('sdmultiple');
4951
coerce('width');

0 commit comments

Comments
 (0)