aboutsummaryrefslogtreecommitdiff
path: root/src/lib/components
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/components')
-rw-r--r--src/lib/components/HealthChart.svelte4
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));