Statistics Reviews graph, make the color of New and Learning cards consistent with the color of card count

This commit is contained in:
Thomas Rixen 2025-08-04 13:53:19 +02:00
parent 2b55882cce
commit 025a379009

View file

@ -20,6 +20,7 @@ import {
curveBasis, curveBasis,
interpolateBlues, interpolateBlues,
interpolateGreens, interpolateGreens,
interpolateOranges,
interpolatePurples, interpolatePurples,
interpolateReds, interpolateReds,
max, max,
@ -181,7 +182,7 @@ export function renderReviews(
const reds = scaleSequential((n) => interpolateReds(cappedRange(n)!)).domain( const reds = scaleSequential((n) => interpolateReds(cappedRange(n)!)).domain(
x.domain() as any, x.domain() as any,
); );
const blues = scaleSequential((n) => interpolateBlues(cappedRange(n)!)).domain( const oranges = scaleSequential((n) => interpolateOranges(cappedRange(n)!)).domain(
x.domain() as any, x.domain() as any,
); );
const purples = scaleSequential((n) => interpolatePurples(cappedRange(n)!)).domain( const purples = scaleSequential((n) => interpolatePurples(cappedRange(n)!)).domain(
@ -195,7 +196,7 @@ export function renderReviews(
case BinIndex.Young: case BinIndex.Young:
return lighterGreens; return lighterGreens;
case BinIndex.Learn: case BinIndex.Learn:
return blues; return oranges;
case BinIndex.Relearn: case BinIndex.Relearn:
return reds; return reds;
case BinIndex.Filtered: case BinIndex.Filtered: