fitness: use time-scale x-axis for weight chart to handle date gaps
All checks were successful
CI / update (push) Successful in 2m23s

Weight chart now spaces data points proportionally to actual dates
instead of evenly. Days without a weight log no longer compress adjacent
points together. Uses Chart.js time scale with chartjs-adapter-date-fns.
This commit is contained in:
2026-03-30 08:59:59 +02:00
parent 5bed3f3781
commit 27a29b6f69
5 changed files with 48 additions and 7 deletions

View File

@@ -82,6 +82,7 @@
const weightChartData = $derived({
labels: stats.weightChart?.labels ?? [],
dates: stats.weightChart?.dates,
datasets: [
...(hasSma ? [
{