From b5521d67310df1fa8d7f3196e68d524820613a01 Mon Sep 17 00:00:00 2001 From: Riaan Doorduin Date: Sun, 15 Nov 2026 13:25:39 +0200 Subject: [PATCH] Dashboard: ferritin as a graph only, no results table Co-Authored-By: Claude Opus 5.5 --- src/mygarmin/report/dashboard.html | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/mygarmin/report/dashboard.html b/src/mygarmin/report/dashboard.html index 2917192..123b9ac 100644 --- a/src/mygarmin/report/dashboard.html +++ b/src/mygarmin/report/dashboard.html @@ -138,9 +138,8 @@ h3.sub { margin: 8px 0 0; font: 600 16px var(--body) }
- @@ -442,8 +441,6 @@ if (hd) (function () { ...(tgt.length ? [0, 1].map(k => line(tgt.map(r => ({ x: r.t, y: r.target[k] })), css('--muted'), { label: k ? 'Target max' : 'Target min', stepped: true, borderDash: [5, 4], borderWidth: 1.5, pointHoverRadius: 0 })) : [])] }, options: { maintainAspectRatio: false, parsing: false, plugins: { legend: { display: false }, tooltip: { ...tip, callbacks: { title: i => fmtD(i[0].raw.x), label: i => `${i.dataset.label}: ${i.raw.y} ${LM[0].unit}` } } }, scales: { x: { ...xAxis, min: P[0].t - 15 * 864e5, max: P.at(-1).t + 15 * 864e5 }, y: { type: lm === 'ferritin' ? 'logarithmic' : 'linear', grid, ...(lm === 'ferritin' ? { afterBuildTicks: ax => { ax.ticks = [5, 10, 20, 50, 100, 200, 500, 1000, 2000, 5000].filter(v => v >= ax.min && v <= ax.max).map(value => ({ value })) } } : {}) } } } }); - $('tLab').innerHTML = 'DateTestResultLabReference' + - [...LABS].reverse().map(r => `${r.d}${LNAME[r.m]}${r.v} ${r.unit}${(r.lab || '').replace(/[<>&]/g, '')}${r.ref ? r.ref.join('–') : ''}`).join('') + ''; } if (HEALTH.bp.length) { const B = HEALTH.bp.map(b => ({ ...b, t: Date.parse(b.d) }));