From 0148ac1d2760a872277593a63f3059dafaf49baf Mon Sep 17 00:00:00 2001 From: mitchthorson Date: Thu, 19 Dec 2024 21:11:01 -0500 Subject: [PATCH] Fix: legend resets thresholds when needed --- src/lib/maps/ColorLegend/ColorLegend.svelte | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/maps/ColorLegend/ColorLegend.svelte b/src/lib/maps/ColorLegend/ColorLegend.svelte index 8fa4af8..79c04b5 100644 --- a/src/lib/maps/ColorLegend/ColorLegend.svelte +++ b/src/lib/maps/ColorLegend/ColorLegend.svelte @@ -190,6 +190,8 @@ : scale.quantiles ? scale.quantiles() // scaleQuantile : scale.domain(); // scaleThreshold + } else { + thresholds = undefined; } $: tickFormatFn = getTickFormatFn(tickFormat, thresholds);