diff --git a/web/components/charts/generic-charts.tsx b/web/components/charts/generic-charts.tsx index a45d7a66..4d42da44 100644 --- a/web/components/charts/generic-charts.tsx +++ b/web/components/charts/generic-charts.tsx @@ -299,7 +299,7 @@ export const SingleValueHistoryChart =
(props: { }, [w, h, yKind, xScale, yScale]) const selector = dataAtPointSelector(data, xScale) - const onMouseOver = useEvent((mouseX: number, mouseY: number) => { + const onMouseOver = useEvent((mouseX: number) => { const p = selector(mouseX) props.onMouseOver?.(p.prev) const x0 = p.prev ? xScale(p.prev.x) : xScale.range()[0] @@ -310,7 +310,7 @@ export const SingleValueHistoryChart =
(props: { if (p.prev && markerY) { setMouse({ x: mouseX, - y: mouseY, + y: markerY, y0: py0, y1: markerY, data: p.prev,