mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 07:22:23 -04:00
Fix '366 of 365 days studied' (#3182)
* Fix '366 of 365 days studied' * Apply nicing when GraphRange.AllTime is selected
This commit is contained in:
parent
df004b0b0c
commit
50772eeece
1 changed files with 4 additions and 2 deletions
|
@ -110,8 +110,10 @@ export function renderReviews(
|
||||||
}
|
}
|
||||||
const desiredBars = Math.min(70, Math.abs(xMin!));
|
const desiredBars = Math.min(70, Math.abs(xMin!));
|
||||||
|
|
||||||
const x = scaleLinear().domain([xMin!, xMax]).nice(desiredBars);
|
const x = scaleLinear().domain([xMin!, xMax]);
|
||||||
x.domain([x.domain()[0], xMax]);
|
if (range === GraphRange.AllTime) {
|
||||||
|
x.nice(desiredBars);
|
||||||
|
}
|
||||||
|
|
||||||
const sourceMap = showTime ? sourceData.reviewTime : sourceData.reviewCount;
|
const sourceMap = showTime ? sourceData.reviewTime : sourceData.reviewCount;
|
||||||
const bins = bin()
|
const bins = bin()
|
||||||
|
|
Loading…
Reference in a new issue