From 8ec68182afdb78b08ee36ec73d1358c212f9d360 Mon Sep 17 00:00:00 2001 From: junlu592 Date: Sun, 14 Dec 2025 12:17:38 +0100 Subject: [PATCH] small review changes --- 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 b33232b25..64cbdb63b 100644 --- a/ts/routes/graphs/reviews.ts +++ b/ts/routes/graphs/reviews.ts @@ -90,6 +90,7 @@ export function renderReviews( ): TableDatum[] { const svg = select(svgElem); const trans = svg.transition().duration(600) as any; + const xMax = 1; let xMin = 0; // cap max to selected range @@ -346,8 +347,7 @@ export function renderReviews( .on("mouseout", hideTooltip); // The xMin might be extended for bin alignment, so use the original xMin - const actualXMin = originalXMin; - const periodDays = -actualXMin + 1; + const periodDays = -originalXMin + 1; const studiedDays = sum(bins, (bin) => bin.length); const studiedPercent = (studiedDays / periodDays) * 100; const total = yCumMax;