mirror of
https://github.com/ankitects/anki.git
synced 2026-01-07 02:53:54 -05:00
small review changes
This commit is contained in:
parent
d1f0ef6dfe
commit
8ec68182af
1 changed files with 2 additions and 2 deletions
|
|
@ -90,6 +90,7 @@ export function renderReviews(
|
||||||
): TableDatum[] {
|
): TableDatum[] {
|
||||||
const svg = select(svgElem);
|
const svg = select(svgElem);
|
||||||
const trans = svg.transition().duration(600) as any;
|
const trans = svg.transition().duration(600) as any;
|
||||||
|
|
||||||
const xMax = 1;
|
const xMax = 1;
|
||||||
let xMin = 0;
|
let xMin = 0;
|
||||||
// cap max to selected range
|
// cap max to selected range
|
||||||
|
|
@ -346,8 +347,7 @@ export function renderReviews(
|
||||||
.on("mouseout", hideTooltip);
|
.on("mouseout", hideTooltip);
|
||||||
|
|
||||||
// The xMin might be extended for bin alignment, so use the original xMin
|
// The xMin might be extended for bin alignment, so use the original xMin
|
||||||
const actualXMin = originalXMin;
|
const periodDays = -originalXMin + 1;
|
||||||
const periodDays = -actualXMin + 1;
|
|
||||||
const studiedDays = sum(bins, (bin) => bin.length);
|
const studiedDays = sum(bins, (bin) => bin.length);
|
||||||
const studiedPercent = (studiedDays / periodDays) * 100;
|
const studiedPercent = (studiedDays / periodDays) * 100;
|
||||||
const total = yCumMax;
|
const total = yCumMax;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue