diff --git a/packages/lib/src/components/results/ChartComponent.wc.svelte b/packages/lib/src/components/results/ChartComponent.wc.svelte index fa7126f..98cef49 100644 --- a/packages/lib/src/components/results/ChartComponent.wc.svelte +++ b/packages/lib/src/components/results/ChartComponent.wc.svelte @@ -192,6 +192,11 @@ ): ChartDataSets => { let dataSet: number[]; + // This is bad. For some reason the passed value is a string not a array of strings. With this conversion it does work! + if (typeof backgroundColor == "string") { + backgroundColor = backgroundColor.split(","); + } + if (perSite) { dataSet = chartLabels.map((label: string) => { const site: Site | undefined = responseStore.get(label);