From d6bb27f97c13bcde53e241a69f927b84bfb6268b Mon Sep 17 00:00:00 2001 From: Marshall Polaris Date: Tue, 4 Oct 2022 14:13:53 -0700 Subject: [PATCH] Fix graph area to invert at 0 (#998) --- 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(() => {