From 212c3adc8a584e6517a2816fc6683688d5ac5d7a Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Tue, 8 Sep 2026 13:44:59 +0200 Subject: Project health chart on LayerChart Project page gets a Sante chart: daily mean of per-routine health via computeProjectHealthSeries, ending at the current health score. Both charts share a HealthChart component built on LayerChart's AreaChart (time x-axis, fixed 0-100 y-axis, completion dots). --- src/lib/components/HealthChart.svelte | 110 ++++++++++++++++++++++++++++++++++ 1 file changed, 110 insertions(+) create mode 100644 src/lib/components/HealthChart.svelte (limited to 'src/lib/components/HealthChart.svelte') diff --git a/src/lib/components/HealthChart.svelte b/src/lib/components/HealthChart.svelte new file mode 100644 index 0000000..f1f87ed --- /dev/null +++ b/src/lib/components/HealthChart.svelte @@ -0,0 +1,110 @@ + + +{#if data.length >= 2} + +{:else} +

Pas encore assez d'historique pour tracer la courbe.

+{/if} + +{#snippet xTickLabel({ + props, + index, +}: { + props: Record; + index: number; +})} + +{/snippet} + +{#snippet chartMarks()} + + +{/snippet} + + -- cgit v1.3