Client - fix statistics chart when switching from line to bar chart

This commit is contained in:
Sam
2023-11-19 11:57:45 +01:00
parent 24598453e1
commit bb01ee30fe
2 changed files with 67 additions and 0 deletions

View File

@ -84,6 +84,8 @@ const getStatisticsChartDataset = (
dataset.type = 'line'
dataset.borderColor = [color]
dataset.spanGaps = true
} else {
dataset.type = 'bar'
}
return dataset
}