From c457b43a87228f1823cd96eace4a2abcd3aa37bd Mon Sep 17 00:00:00 2001 From: junlu592 Date: Tue, 2 Dec 2025 12:18:46 +0100 Subject: [PATCH] reverted unneccessary changes to xMax --- ts/routes/graphs/reviews.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ts/routes/graphs/reviews.ts b/ts/routes/graphs/reviews.ts index c6a2abc5f..8cb221886 100644 --- a/ts/routes/graphs/reviews.ts +++ b/ts/routes/graphs/reviews.ts @@ -90,7 +90,7 @@ export function renderReviews( ): TableDatum[] { const svg = select(svgElem); const trans = svg.transition().duration(600) as any; - let xMax = 1; + const xMax = 1; let xMin = 0; // cap max to selected range switch (range) { @@ -102,7 +102,6 @@ export function renderReviews( break; case GraphRange.Year: xMin = -364; - xMax = 0; break; case GraphRange.AllTime: xMin = min(sourceData.reviewCount.keys())!;