Skip to content

Commit 2517ed0

Browse files
authored
Merge pull request #3445 from plotly/rm-box-ungrouping-magic
Remove box ungrouping magic
2 parents ef52b8c + a6398f4 commit 2517ed0

File tree

3 files changed

+16
-6
lines changed

3 files changed

+16
-6
lines changed

src/traces/box/cross_trace_calc.js

-6
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,6 @@ function setPositionOffset(traceType, gd, boxList, posAxis) {
7373
var boxdv = Lib.distinctVals(pointList);
7474
var dPos0 = boxdv.minDiff / 2;
7575

76-
// if there's no duplication of x points,
77-
// disable 'group' mode by setting counter to 1
78-
if(pointList.length === boxdv.vals.length) {
79-
fullLayout[numKey] = 1;
80-
}
81-
8276
// check for forced minimum dtick
8377
Axes.minDtick(posAxis, boxdv.minDiff, boxdv.vals[0], true);
8478

16.5 KB
Loading
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"data": [{
3+
"type": "box",
4+
"x0": 1,
5+
"y": [1, 2, 1, 2, 1, 2, 3, 4, 4]
6+
}, {
7+
"type": "box",
8+
"x0": 2,
9+
"y": [2, 1, 2, 3, 3, 1, 0, 0, 1]
10+
}],
11+
"layout": {
12+
"title": {"text": "single-box groups!"},
13+
"boxmode": "group",
14+
"showlegend": false
15+
}
16+
}

0 commit comments

Comments
 (0)