Skip to content

Commit

Permalink
Fix: legend resets thresholds when needed
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchthorson committed Dec 20, 2024
1 parent e4067f6 commit 0148ac1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/maps/ColorLegend/ColorLegend.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,8 @@
: scale.quantiles
? scale.quantiles() // scaleQuantile
: scale.domain(); // scaleThreshold
} else {
thresholds = undefined;
}
$: tickFormatFn = getTickFormatFn(tickFormat, thresholds);
Expand Down

0 comments on commit 0148ac1

Please sign in to comment.