From a77ffbf4a55f9bf5bdae4b1b347ac60fe019fd49 Mon Sep 17 00:00:00 2001 From: Thomas Rixen <73760651+thomasrixen@users.noreply.github.com> Date: Wed, 6 Aug 2025 10:07:10 +0200 Subject: [PATCH] Statistics "Reviews" graph, make the color of "New" and "Learning" cards consistent with the color of card count (#4245) * Statistics Reviews graph, make the color of New and Learning cards consistent with the color of card count * removing bleu warning * contributors --- CONTRIBUTORS | 1 + ts/routes/graphs/reviews.ts | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index b5dfe1d53..3f6a37ba8 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -236,6 +236,7 @@ Marvin Kopf Kevin Nakamura Bradley Szoke jcznk +Thomas Rixen ******************** diff --git a/ts/routes/graphs/reviews.ts b/ts/routes/graphs/reviews.ts index fd3786b5f..ed0e07f8c 100644 --- a/ts/routes/graphs/reviews.ts +++ b/ts/routes/graphs/reviews.ts @@ -18,8 +18,8 @@ import { bin, cumsum, curveBasis, - interpolateBlues, interpolateGreens, + interpolateOranges, interpolatePurples, interpolateReds, max, @@ -181,7 +181,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 +195,7 @@ export function renderReviews( case BinIndex.Young: return lighterGreens; case BinIndex.Learn: - return blues; + return oranges; case BinIndex.Relearn: return reds; case BinIndex.Filtered: