From d939ef2f6022821d7add356114e27565494a720a Mon Sep 17 00:00:00 2001 From: mbof Date: Mon, 26 Aug 2024 03:24:45 -0700 Subject: [PATCH] Set interpolation mode to "monotone" to avoid backwards-going lines (fix #70) (#71) --- 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: {