From 6c638b87f58ea47ce1dea2ef0193e94271079dcc Mon Sep 17 00:00:00 2001 From: Henrik Giesel Date: Tue, 5 Jan 2021 19:37:14 +0100 Subject: [PATCH] Switch relearning cards to schemeReds --- ts/graphs/card-counts.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ts/graphs/card-counts.ts b/ts/graphs/card-counts.ts index 25c8f4a34..7451466c1 100644 --- a/ts/graphs/card-counts.ts +++ b/ts/graphs/card-counts.ts @@ -8,7 +8,12 @@ import { CardQueue, CardType } from "anki/cards"; import type pb from "anki/backend_proto"; -import { schemeGreens, schemeBlues, schemeOranges } from "d3-scale-chromatic"; +import { + schemeGreens, + schemeBlues, + schemeOranges, + schemeReds, +} from "d3-scale-chromatic"; import "d3-transition"; import { select } from "d3-selection"; import { scaleLinear } from "d3-scale"; @@ -28,7 +33,7 @@ export interface GraphData { const barColours = [ schemeBlues[5][2] /* new */, schemeOranges[5][2] /* learn */, - schemeOranges[5][3] /* relearn */, + schemeReds[5][2] /* relearn */, schemeGreens[5][2] /* young */, schemeGreens[5][3] /* mature */, "#FFDC41" /* suspended */,