From f4e84a1c8629355b6d85d55291430128ee42337b Mon Sep 17 00:00:00 2001 From: mbof Date: Sat, 24 Aug 2024 11:08:35 -0700 Subject: [PATCH] Set interpolation mode to "monotone" to avoid backwards-going lines (fix #70) --- website/src/lib/components/ElevationProfile.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/website/src/lib/components/ElevationProfile.svelte b/website/src/lib/components/ElevationProfile.svelte index 3885816f..5cab1a85 100644 --- a/website/src/lib/components/ElevationProfile.svelte +++ b/website/src/lib/components/ElevationProfile.svelte @@ -104,7 +104,8 @@ line: { pointRadius: 0, tension: 0.4, - borderWidth: 2 + borderWidth: 2, + cubicInterpolationMode: 'monotone' } }, interaction: {