mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
parent
5ccc6304e3
commit
169d85883d
1 changed files with 3 additions and 3 deletions
|
@ -18,8 +18,8 @@ import {
|
||||||
bin,
|
bin,
|
||||||
cumsum,
|
cumsum,
|
||||||
curveBasis,
|
curveBasis,
|
||||||
|
interpolateBlues,
|
||||||
interpolateGreens,
|
interpolateGreens,
|
||||||
interpolateOranges,
|
|
||||||
interpolatePurples,
|
interpolatePurples,
|
||||||
interpolateReds,
|
interpolateReds,
|
||||||
max,
|
max,
|
||||||
|
@ -181,7 +181,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 oranges = scaleSequential((n) => interpolateOranges(cappedRange(n)!)).domain(
|
const blues = scaleSequential((n) => interpolateBlues(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 +195,7 @@ export function renderReviews(
|
||||||
case BinIndex.Young:
|
case BinIndex.Young:
|
||||||
return lighterGreens;
|
return lighterGreens;
|
||||||
case BinIndex.Learn:
|
case BinIndex.Learn:
|
||||||
return oranges;
|
return blues;
|
||||||
case BinIndex.Relearn:
|
case BinIndex.Relearn:
|
||||||
return reds;
|
return reds;
|
||||||
case BinIndex.Filtered:
|
case BinIndex.Filtered:
|
||||||
|
|
Loading…
Reference in a new issue