From 8135bc24ee0d921d156fed5be55c5611a0ed81be Mon Sep 17 00:00:00 2001 From: junlu592 Date: Tue, 2 Dec 2025 11:53:04 +0100 Subject: [PATCH] changed xMax, so today is included in month and 3months --- ts/routes/graphs/reviews.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ts/routes/graphs/reviews.ts b/ts/routes/graphs/reviews.ts index 4651cd29f..839735767 100644 --- a/ts/routes/graphs/reviews.ts +++ b/ts/routes/graphs/reviews.ts @@ -91,7 +91,7 @@ export function renderReviews( const svg = select(svgElem); const trans = svg.transition().duration(600) as any; - let xMax = 0; + let xMax = 1; let xMin = 0; // cap max to selected range switch (range) { @@ -103,10 +103,10 @@ export function renderReviews( break; case GraphRange.Year: xMin = -364; + xMax = 0; break; case GraphRange.AllTime: xMin = min(sourceData.reviewCount.keys())!; - xMax = 1; break; } const desiredBars = Math.min(70, Math.abs(xMin!));