Update ts/routes/graphs/reviews.ts

Co-authored-by: user1823 <92206575+user1823@users.noreply.github.com>
This commit is contained in:
Junia Mannervik 2025-12-11 21:47:21 +01:00 committed by GitHub
parent ce9b087190
commit d737f5da72
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -109,7 +109,7 @@ export function renderReviews(
}
const desiredBars = Math.min(70, Math.abs(xMin!));
const shouldCapRange = range !== GraphRange.AllTime;
const originalXMin = shouldCapRange ? xMin! : undefined;
const originalXMin = xMin!;
// Create initial scale to determine tick spacing
let x = scaleLinear().domain([xMin!, xMax]);