Skip to content

Commit 4a5be0b

Browse files
committed
fix yaxis-tooltip position when yaxis is on opposite end
1 parent 7b09f23 commit 4a5be0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modules/tooltip/Position.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export default class Position {
143143
let cx = w.globals.translateYAxisX[index] - 2
144144

145145
if (w.config.yaxis[index].opposite) {
146-
cx = cx - 26
146+
cx = cx - yAxisTTRect.width
147147
}
148148

149149
cy = cy - yAxisTTHeight / 2

0 commit comments

Comments
 (0)