mirror of
https://github.com/ankitects/anki.git
synced 2026-01-07 02:53:54 -05:00
changed xMax, so today is included in month and 3months
This commit is contained in:
parent
17c63491d9
commit
8135bc24ee
1 changed files with 2 additions and 2 deletions
|
|
@ -91,7 +91,7 @@ export function renderReviews(
|
|||
const svg = select(svgElem);
|
||||
const trans = svg.transition().duration(600) as any;
|
||||
|
||||
let xMax = 0;
|
||||
let xMax = 1;
|
||||
let xMin = 0;
|
||||
// cap max to selected range
|
||||
switch (range) {
|
||||
|
|
@ -103,10 +103,10 @@ export function renderReviews(
|
|||
break;
|
||||
case GraphRange.Year:
|
||||
xMin = -364;
|
||||
xMax = 0;
|
||||
break;
|
||||
case GraphRange.AllTime:
|
||||
xMin = min(sourceData.reviewCount.keys())!;
|
||||
xMax = 1;
|
||||
break;
|
||||
}
|
||||
const desiredBars = Math.min(70, Math.abs(xMin!));
|
||||
|
|
|
|||
Loading…
Reference in a new issue