From a48c600b208d4bfad593f452fd0344e734c56270 Mon Sep 17 00:00:00 2001 From: loviuz Date: Mon, 20 Jul 2020 09:15:44 +0200 Subject: [PATCH] Miglioramento grafico statistiche --- modules/statistiche/edit.php | 5 +++++ modules/statistiche/js/stats/line_chart.js | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/modules/statistiche/edit.php b/modules/statistiche/edit.php index f33d9cab0..920a2107b 100755 --- a/modules/statistiche/edit.php +++ b/modules/statistiche/edit.php @@ -85,6 +85,11 @@ var chart_options = { } } }, + elements: { + line: { + tension: 0 + } + }, annotation: { annotations: [{ type: "line", diff --git a/modules/statistiche/js/stats/line_chart.js b/modules/statistiche/js/stats/line_chart.js index 0a937f6fa..f30ce17a3 100755 --- a/modules/statistiche/js/stats/line_chart.js +++ b/modules/statistiche/js/stats/line_chart.js @@ -33,11 +33,11 @@ class LineChart extends Stat { chart.data.datasets.push({ calendar_id: calendar_id, label: label, - backgroundColor: color, + backgroundColor: color + '55', borderColor: color, data: dataset, labels: labels, - fill: false, + fill: true, }); chart.update();