NerdCorner: show per-period load instead of cumulative
This commit is contained in:
@@ -62,10 +62,8 @@
|
||||
for (const yr of years) {
|
||||
const pm = byYear.get(yr)!;
|
||||
const limit = yr === _currentYear ? curPeriod : maxPer;
|
||||
let cum = 0;
|
||||
for (let p = 1; p <= limit; p++) {
|
||||
cum += pm.get(p) ?? 0;
|
||||
rows.push({ year: String(yr), period: p, value: cum });
|
||||
rows.push({ year: String(yr), period: p, value: pm.get(p) ?? 0 });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user