From 0258b29cb9c1a1bd9f12606937c5125aa9846478 Mon Sep 17 00:00:00 2001 From: Marshall Polaris Date: Tue, 4 Oct 2022 14:12:53 -0700 Subject: [PATCH] Fix graph area to invert at 0 --- web/components/charts/generic-charts.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/components/charts/generic-charts.tsx b/web/components/charts/generic-charts.tsx index 4d42da44..171a5d01 100644 --- a/web/components/charts/generic-charts.tsx +++ b/web/components/charts/generic-charts.tsx @@ -277,7 +277,7 @@ export const SingleValueHistoryChart =

(props: { const xScale = viewXScale ?? props.xScale const px = useCallback((p: P) => xScale(p.x), [xScale]) - const py0 = yScale(yScale.domain()[0]) + const py0 = yScale(0) const py1 = useCallback((p: P) => yScale(p.y), [yScale]) const { xAxis, yAxis } = useMemo(() => {