mirror of
https://github.com/ankitects/anki.git
synced 2026-01-09 03:53:55 -05:00
ninja check fix, let -> const and removed empty line
This commit is contained in:
parent
a2be2b964f
commit
bc6bd05fee
1 changed files with 1 additions and 2 deletions
|
|
@ -90,7 +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;
|
||||||
let xMax = 1;
|
const xMax = 1;
|
||||||
let xMin = 0;
|
let xMin = 0;
|
||||||
// cap max to selected range
|
// cap max to selected range
|
||||||
switch (range) {
|
switch (range) {
|
||||||
|
|
@ -124,7 +124,6 @@ export function renderReviews(
|
||||||
thresholds = x.ticks(desiredBars);
|
thresholds = x.ticks(desiredBars);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// For Year, shift thresholds forward by one day to make first bin 0-4 instead of 0-5
|
// For Year, shift thresholds forward by one day to make first bin 0-4 instead of 0-5
|
||||||
if (range === GraphRange.Year) {
|
if (range === GraphRange.Year) {
|
||||||
thresholds = [...new Set(thresholds.map(t => Math.min(t + 1, 1)))].sort((a, b) => a - b);
|
thresholds = [...new Set(thresholds.map(t => Math.min(t + 1, 1)))].sort((a, b) => a - b);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue