From 861cc0d7e789c670e1e0e49786940d7804524a48 Mon Sep 17 00:00:00 2001 From: Patrick Skowronek Date: Wed, 10 Jan 2024 08:51:46 +0100 Subject: [PATCH] hack: this commit will fix the issue with wrong coding at some site. This should be removed A$AP. --- packages/lib/src/components/results/ChartComponent.wc.svelte | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/lib/src/components/results/ChartComponent.wc.svelte b/packages/lib/src/components/results/ChartComponent.wc.svelte index 9e852ee..fbc9a97 100644 --- a/packages/lib/src/components/results/ChartComponent.wc.svelte +++ b/packages/lib/src/components/results/ChartComponent.wc.svelte @@ -258,6 +258,9 @@ ): { labels: string[]; data: number[] } => { const groupedChartData: { label: string; value: number }[] = labels.reduce((acc, label) => { + // This is a hack! This will help with the wrong coding of ICD10 + label = label.replaceAll("_", ".") + /** * see if the label contains the divider * if not, add it to the accumulator with a .% at the end