Fix VO2 gauge arc direction: sweep=1 for upper (top) semicircle
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 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user