Skip to content

Commit

Permalink
Merge pull request #138 from samply/fix/chartrange
Browse files Browse the repository at this point in the history
Fix/chartrange
  • Loading branch information
torbrenner authored Oct 16, 2024
2 parents 20e9b57 + 6f7f45f commit 32db431
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 32db431

Please sign in to comment.