From 025a379009a5f90d2a37379e4ceffd94bfe07b39 Mon Sep 17 00:00:00 2001 From: Thomas Rixen Date: Mon, 4 Aug 2025 13:53:19 +0200 Subject: [PATCH] Statistics Reviews graph, make the color of New and Learning cards consistent with the color of card count --- ts/routes/graphs/reviews.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ts/routes/graphs/reviews.ts b/ts/routes/graphs/reviews.ts index fd3786b5f..41b500917 100644 --- a/ts/routes/graphs/reviews.ts +++ b/ts/routes/graphs/reviews.ts @@ -20,6 +20,7 @@ import { curveBasis, interpolateBlues, interpolateGreens, + interpolateOranges, interpolatePurples, interpolateReds, max, @@ -181,7 +182,7 @@ export function renderReviews( const reds = scaleSequential((n) => interpolateReds(cappedRange(n)!)).domain( x.domain() as any, ); - const blues = scaleSequential((n) => interpolateBlues(cappedRange(n)!)).domain( + const oranges = scaleSequential((n) => interpolateOranges(cappedRange(n)!)).domain( x.domain() as any, ); const purples = scaleSequential((n) => interpolatePurples(cappedRange(n)!)).domain( @@ -195,7 +196,7 @@ export function renderReviews( case BinIndex.Young: return lighterGreens; case BinIndex.Learn: - return blues; + return oranges; case BinIndex.Relearn: return reds; case BinIndex.Filtered: