From c778766293b38d8bfe3062152d92af3da8465d37 Mon Sep 17 00:00:00 2001 From: vcoppe Date: Sat, 31 Oct 2026 15:21:11 +0100 Subject: [PATCH] fix last type error --- .../lib/components/elevation-profile/elevation-profile.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/website/src/lib/components/elevation-profile/elevation-profile.ts b/website/src/lib/components/elevation-profile/elevation-profile.ts index ec26dcc2f..b6492767b 100644 --- a/website/src/lib/components/elevation-profile/elevation-profile.ts +++ b/website/src/lib/components/elevation-profile/elevation-profile.ts @@ -346,7 +346,8 @@ export class ElevationProfile { grid: { display: false, }, - reverse: () => id === 'speed' && get(velocityUnits) === 'pace', + // the pace axis is reversed: set with the data, which the units change + reverse: false, display: false, }; }); @@ -562,6 +563,8 @@ export class ElevationProfile { global.totalDistance, units.distance ); + // a faster pace is a lower value, it goes up like a higher speed + this._chart.options.scales!.yspeed!.reverse = units.velocity === 'pace'; this.setVisibility(); this.setFill();