diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-09-25 09:10:31 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-09-25 09:10:31 +0200 |
| commit | 760a61001edafb462ca9c7f5bc8013f31fb15a5c (patch) | |
| tree | 50f906de9ddaefb7362d444937f7ff4177ee2a7a /src/lib/components/HealthChart.svelte | |
| parent | e5e1482b1f5aea4a50de44801c81c81750042201 (diff) | |
Compress comments to terse single lines within line width
Diffstat (limited to 'src/lib/components/HealthChart.svelte')
| -rw-r--r-- | src/lib/components/HealthChart.svelte | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/components/HealthChart.svelte b/src/lib/components/HealthChart.svelte index c6121e3..6de0891 100644 --- a/src/lib/components/HealthChart.svelte +++ b/src/lib/components/HealthChart.svelte @@ -20,9 +20,7 @@ markers.map((t) => ({ date: new Date(t), health: 100 })), ); - // Up to 5 x ticks spread across the series, skipping repeats (two samples - // the same day would print the same label twice). Dates stay Date objects - // because LayerChart's time scale consumes them; labels go through Temporal. + // Up to 5 x ticks across the series, skipping same-day repeats. const xTicks = $derived.by(() => { if (data.length < 2) return undefined; const step = Math.max(1, Math.floor((data.length - 1) / 4)); |
