aboutsummaryrefslogtreecommitdiff
path: root/p/scripts/statsWithChartjs.js
diff options
context:
space:
mode:
Diffstat (limited to 'p/scripts/statsWithChartjs.js')
-rw-r--r--p/scripts/statsWithChartjs.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/p/scripts/statsWithChartjs.js b/p/scripts/statsWithChartjs.js
index 5656fe944..3398ee89c 100644
--- a/p/scripts/statsWithChartjs.js
+++ b/p/scripts/statsWithChartjs.js
@@ -47,10 +47,10 @@ function jsonChartBar(label, data, xAxisLabels = '') {
data: {
labels: xAxisLabels,
datasets: [{
- label: label,
+ label,
backgroundColor: '#0062BD',
borderColor: '#0062BD',
- data: data,
+ data,
barPercentage: 1.0,
categoryPercentage: 1.0,
order: 2,
@@ -80,7 +80,7 @@ function jsonChartDoughnut(labels, data) {
return {
type: 'doughnut',
data: {
- labels: labels,
+ labels,
datasets: [{
backgroundColor: [
'#0b84a5', // petrol
@@ -97,7 +97,7 @@ function jsonChartDoughnut(labels, data) {
'#ffa056', // orange
'#8dddd0', // turkis
],
- data: data,
+ data,
}],
},
options: {