Skip to content

Commit 4321451

Browse files
committed
fix: simplify label grouping condition
1 parent 33b28ec commit 4321451

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/components/fx/hover.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1756,8 +1756,7 @@ function hoverAvoidOverlaps(hoverLabels, rotateLabels, fullLayout, commonLabelBo
17561756
var p1 = g1[0];
17571757
topOverlap = p0.pos + p0.dp + p0.size - p1.pos - p1.dp + p1.size;
17581758

1759-
// Only group points that lie on the same axes
1760-
if(topOverlap > 0.01 && p0.crossAxKey === p1.crossAxKey) {
1759+
if(topOverlap > 0.01) {
17611760
// push the new point(s) added to this group out of the way
17621761
for(j = g1.length - 1; j >= 0; j--) g1[j].dp += topOverlap;
17631762

0 commit comments

Comments
 (0)