fitness: improve workouts chart with goal line, max bar width, and full 10-week range
Some checks failed
CI / update (push) Has been cancelled

Add weekly goal as a solid horizontal line on the bar chart via a
custom Chart.js plugin. Cap bar width at 40px. Always show all 10
weeks including empty ones instead of trimming leading zeros.
This commit is contained in:
2026-03-23 12:34:51 +01:00
parent 3ef61c900f
commit 1f83b451de
3 changed files with 52 additions and 23 deletions

View File

@@ -187,6 +187,7 @@
data={workoutsChartData}
title={t('workouts_per_week', lang)}
height="220px"
goalLine={goalWeekly ?? undefined}
/>
{:else}
<p class="empty-chart">{t('no_workout_data', lang)}</p>