Skip to content

Commit 370e61a

Browse files
committed
Don't use linearized values on value axes in box plots
1 parent 2f9fa3b commit 370e61a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/traces/box/plot.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ function plotBoxAndWhiskers(sel, axes, trace, t) {
9494
var posw1 = posAxis.l2p(lcenter + wdPos) + bPosPxOffset;
9595
var posm0 = posAxis.l2p(lcenter - bdPos0 * nw) + bPosPxOffset;
9696
var posm1 = posAxis.l2p(lcenter + bdPos1 * nw) + bPosPxOffset;
97-
var q1 = valAxis.l2p(d.q1, true);
98-
var q3 = valAxis.l2p(d.q3, true);
97+
var q1 = valAxis.c2p(d.q1, true);
98+
var q3 = valAxis.c2p(d.q3, true);
9999
// make sure median isn't identical to either of the
100100
// quartiles, so we can see it
101101
var m = Lib.constrain(

0 commit comments

Comments
 (0)