We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4bc3d35 commit 2684d69Copy full SHA for 2684d69
src/traces/parcats/parcats.js
@@ -446,6 +446,7 @@ function mouseoverPath(d) {
446
}
447
448
var hovertext = hovertextParts.join('<br>');
449
+ var mouseX = d3.mouse(gd)[0];
450
451
Fx.loneHover({
452
x: hoverCenterX - rootBBox.left + graphDivBBox.left,
@@ -456,7 +457,7 @@ function mouseoverPath(d) {
456
457
fontFamily: 'Monaco, "Courier New", monospace',
458
fontSize: 10,
459
fontColor: textColor,
- idealAlign: d3.event.x < hoverCenterX ? 'right' : 'left'
460
+ idealAlign: mouseX < hoverCenterX ? 'right' : 'left'
461
}, {
462
container: fullLayout._hoverlayer.node(),
463
outerContainer: fullLayout._paper.node(),
0 commit comments