From 6f7f45ff51aa6abb1a1080203d3dac2978da982d Mon Sep 17 00:00:00 2001 From: Patrick Skowronek Date: Tue, 15 Oct 2024 11:48:37 +0200 Subject: [PATCH] fix: fix passing group range to charts --- packages/lib/src/components/results/ChartComponent.wc.svelte | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/lib/src/components/results/ChartComponent.wc.svelte b/packages/lib/src/components/results/ChartComponent.wc.svelte index 98cef49..5d7b37d 100644 --- a/packages/lib/src/components/results/ChartComponent.wc.svelte +++ b/packages/lib/src/components/results/ChartComponent.wc.svelte @@ -436,6 +436,10 @@ chart.data.datasets = chartData.data; chartLabels = chartData.labels; + if (typeof groupRange == "string") { + groupRange = Number(groupRange); + } + /** * lets the user define a range for the labels when only single values are used eg. '60' -> '60 - 69' */