From 5256bd448c8a3161710c6a120d289248b8ebdf42 Mon Sep 17 00:00:00 2001 From: owain Date: Mon, 8 Jun 2026 00:41:31 +0100 Subject: [PATCH] Fix VO2 gauge arc direction: sweep=1 for upper (top) semicircle MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit sweep=0 in SVG is counter-clockwise which goes through the bottom of the circle. sweep=1 (clockwise) correctly traces left→top→right. Co-Authored-By: Claude Sonnet 4.6 --- frontend/src/pages/HealthPage.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/pages/HealthPage.jsx b/frontend/src/pages/HealthPage.jsx index c4e152d..a0f4f67 100644 --- a/frontend/src/pages/HealthPage.jsx +++ b/frontend/src/pages/HealthPage.jsx @@ -77,7 +77,7 @@ function Vo2MaxGauge({ value, birthYear, biologicalSex }) { const [x1, y1] = toXY(v1) const [x2, y2] = toXY(v2) const large = (v2 - v1) / (MAX - MIN) > 0.5 ? 1 : 0 - return `M ${x1.toFixed(2)} ${y1.toFixed(2)} A ${r} ${r} 0 ${large} 0 ${x2.toFixed(2)} ${y2.toFixed(2)}` + return `M ${x1.toFixed(2)} ${y1.toFixed(2)} A ${r} ${r} 0 ${large} 1 ${x2.toFixed(2)} ${y2.toFixed(2)}` } // Category segment boundaries from the age/sex ACSM table