diff --git a/src/index.ts b/src/index.ts index abbb71e..e0138a7 100644 --- a/src/index.ts +++ b/src/index.ts @@ -302,7 +302,12 @@ export class LinePod extends ChartwerkPod { this.hideCrosshairCircle(serie.idx); } else { const xPosition = this.state.xScale(closestDatapoint[0]); - const yPosition = this.state.yScale(closestDatapoint[1]); + let yPosition; + if(serie.yOrientation === yAxisOrientation.RIGHT) { + yPosition = this.state.y1Scale(closestDatapoint[1]); + } else { + yPosition = this.state.yScale(closestDatapoint[1]); + } this.moveCrosshairCircle(xPosition, yPosition, serie.idx); }