Skip to content

Commit a1ddd19

Browse files
committed
review feedbacks
1 parent 3658c48 commit a1ddd19

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

draftlogs/6900_fix.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Fix tooltip pointer position calculation when hovermode is set to 'x' - [issue [#6900](https://github.com/plotly/plotly.js/issues/6900) | PR [#6901](https://github.com/plotly/plotly.js/pull/6901)]

src/components/fx/hover.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1008,9 +1008,9 @@ function createHoverText(hoverData, opts) {
10081008

10091009
lpath.attr('d', 'M' + (lx - tooltipMidX) + ',0' +
10101010
'L' + (lx - tooltipMidX + HOVERARROWSIZE) + ',' + topsign + HOVERARROWSIZE +
1011-
'H' + (halfWidth) +
1011+
'H' + halfWidth +
10121012
'v' + topsign + (HOVERTEXTPAD * 2 + tbb.height) +
1013-
'H-' + halfWidth +
1013+
'H' + (-halfWidth) +
10141014
'V' + topsign + HOVERARROWSIZE +
10151015
'H' + (lx - tooltipMidX - HOVERARROWSIZE) +
10161016
'Z');

0 commit comments

Comments
 (0)