fitness: use time-scale x-axis for weight chart to handle date gaps
All checks were successful
CI / update (push) Successful in 2m23s
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:
@@ -82,6 +82,7 @@
|
||||
|
||||
const weightChartData = $derived({
|
||||
labels: stats.weightChart?.labels ?? [],
|
||||
dates: stats.weightChart?.dates,
|
||||
datasets: [
|
||||
...(hasSma ? [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user