MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / dayList

Function dayList

telemetry-dashboard/src/api.ts:119–123  ·  view source on GitHub ↗

Every day in the range, so a chart's x-axis has no holes where nothing happened.

(range: Range)

Source from the content-addressed store, hash-verified

117
118/** Every day in the range, so a chart's x-axis has no holes where nothing happened. */
119function 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`. */
126function densify(labels: string[], byDay: Map<string, number>): number[] {

Callers 3

timeseriesFunction · 0.85
durationBucketSeriesFunction · 0.85
activationFunction · 0.85

Calls 1

addDaysFunction · 0.70

Tested by

no test coverage detected