Skip to content

Commit

Permalink
fix: fix passing group range to charts
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickskowronekdkfz committed Oct 15, 2024
1 parent 20e9b57 commit 6f7f45f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/lib/src/components/results/ChartComponent.wc.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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'
*/
Expand Down

0 comments on commit 6f7f45f

Please sign in to comment.