Skip to content

Commit ac93f5d

Browse files
committed
Make offsetgroup work for boxmode overlay as well
1 parent e8bd5db commit ac93f5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/traces/box/cross_trace_calc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ function setPositionOffset(traceType, gd, boxList, posAxis) {
107107
var alignmentGroups = fullLayout._alignmentOpts[traceType][groupId] || {};
108108
var alignmentGroupOpts = alignmentGroups[trace.alignmentgroup] || {};
109109
var nOffsetGroups = Object.keys(alignmentGroupOpts.offsetGroups || {}).length;
110-
if(group) {
110+
if(group || nOffsetGroups) {
111111
var num = nOffsetGroups || numTotal;
112112
var shift = nOffsetGroups ? trace._offsetIndex : t.num;
113113

0 commit comments

Comments
 (0)