Skip to content

Commit 804be62

Browse files
committed
fix issue 4510 for box plots
1 parent 3e7f03e commit 804be62

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/traces/box/cross_trace_calc.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,10 @@ function setPositionOffset(traceType, gd, boxList, posAxis) {
6868
if(!pointList.length) return;
6969

7070
// box plots - update dPos based on multiple traces
71-
var boxdv = Lib.distinctVals(pointList);
71+
var boxdv = Lib.distinctVals(pointList, {
72+
unitMinDiff: posAxis.type === 'category' || posAxis.type === 'multicategory'
73+
});
74+
7275
var dPos0 = boxdv.minDiff / 2;
7376

7477
// check for forced minimum dtick

0 commit comments

Comments
 (0)