Skip to content

Commit 7066dd3

Browse files
committed
Include this year in chart even if zero
1 parent 61e2e31 commit 7066dd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

by-year.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868

6969
// Add zero to any missing years
7070
let startYear = Object.keys(countsPerYear)[0];
71-
let endYear = Object.keys(countsPerYear).slice(-1)[0];
71+
let endYear = today.getFullYear();
7272
for (let year = startYear; year <= endYear; year++) {
7373
if (!countsPerYear[year]) {
7474
countsPerYear[year] = { joins: 0, leaves: 0 };

0 commit comments

Comments
 (0)