|
|
@ -302,7 +302,12 @@ export class LinePod extends ChartwerkPod<LineTimeSerie, LineOptions> { |
|
|
|
this.hideCrosshairCircle(serie.idx); |
|
|
|
this.hideCrosshairCircle(serie.idx); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
const xPosition = this.state.xScale(closestDatapoint[0]); |
|
|
|
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); |
|
|
|
this.moveCrosshairCircle(xPosition, yPosition, serie.idx); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|