* Given a full list of entries (oldest-first), return a sampled subset * of at most MAX_POINTS for display. Coalesces same-day runs first, then * thins if still too many.
(entries)
| 348 | * thins if still too many. |
| 349 | */ |
| 350 | function sampleEntries(entries) { |
| 351 | const coalesced = coalesceByDay(entries); |
| 352 | return thinEvenly(coalesced, MAX_POINTS); |
| 353 | } |
| 354 | |
| 355 | /** |
| 356 | * Filter entries to a timestamp window [minMs, maxMs], then resample. |
no test coverage detected