mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
fix "32 of 31 days"
https://forums.ankiweb.net/t/feedback-on-the-new-graphs-in-anki-ankimobile/1671/41?u=dae
This commit is contained in:
parent
9334272a27
commit
ceb342cbc2
1 changed files with 4 additions and 4 deletions
|
@ -117,13 +117,13 @@ export function renderReviews(
|
|||
// cap max to selected range
|
||||
switch (range) {
|
||||
case GraphRange.Month:
|
||||
xMin = -31;
|
||||
xMin = -30;
|
||||
break;
|
||||
case GraphRange.ThreeMonths:
|
||||
xMin = -90;
|
||||
xMin = -89;
|
||||
break;
|
||||
case GraphRange.Year:
|
||||
xMin = -365;
|
||||
xMin = -364;
|
||||
break;
|
||||
case GraphRange.AllTime:
|
||||
xMin = min(sourceData.reviewCount.keys())!;
|
||||
|
@ -354,7 +354,7 @@ export function renderReviews(
|
|||
})
|
||||
.on("mouseout", hideTooltip);
|
||||
|
||||
const periodDays = -xMin;
|
||||
const periodDays = -xMin + 1;
|
||||
const studiedDays = sum(bins, (bin) => bin.length);
|
||||
const total = yCumMax;
|
||||
const periodAvg = total / periodDays;
|
||||
|
|
Loading…
Reference in a new issue