Skip to content

Commit d965131

Browse files
author
Daniel Gröger
committed
Avoid overlap of point and axis hover labels
close #3973
1 parent 48ce92e commit d965131

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/fx/hover.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1518,7 +1518,7 @@ function hoverAvoidOverlaps(hoverLabels, axKey, fullLayout) {
15181518
posref: d.posref,
15191519
size: d.by * (axIsX ? YFACTOR : 1) / 2,
15201520
pmin: 0,
1521-
pmax: (axIsX ? fullLayout.width : fullLayout.height)
1521+
pmax: (axIsX ? fullLayout.width : fullLayout.height) - ax._mainLinePosition
15221522
}];
15231523
});
15241524

0 commit comments

Comments
 (0)