Every day in the range, so a chart's x-axis has no holes where nothing happened.
(range: Range)
| 117 | |
| 118 | /** Every day in the range, so a chart's x-axis has no holes where nothing happened. */ |
| 119 | function dayList(range: Range): string[] { |
| 120 | const days: string[] = []; |
| 121 | for (let i = 0; i < range.days; i++) days.push(addDays(range.from, i)); |
| 122 | return days; |
| 123 | } |
| 124 | |
| 125 | /** Turns day-keyed rows into a dense series aligned to `labels`. */ |
| 126 | function densify(labels: string[], byDay: Map<string, number>): number[] { |
no test coverage detected