Skeudenn / lib/reading-stats / buildBuckets
Function: buildBuckets() ​
buildBuckets(
stats,period,now?):StatsBucket[]
Defined in: src/lib/reading-stats.ts:111
The history grouped by week (the last WEEKS_SHOWN), month (the last MONTHS_SHOWN) or year (from the first one with data), oldest first, with empty periods kept as zeros so the charts have no gaps. Dates are read in the local time zone.
Parameters ​
stats ​
period ​
now? ​
Date = ...