From 3b94dcec9bbdf77ef406d43333cad4fa08eed5d9 Mon Sep 17 00:00:00 2001 From: JonatanRek Date: Thu, 26 Sep 2019 16:19:58 +0200 Subject: [PATCH] Beter Graphs #2 --- app/views/Ajax.php | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/app/views/Ajax.php b/app/views/Ajax.php index d4af763..054374a 100644 --- a/app/views/Ajax.php +++ b/app/views/Ajax.php @@ -103,10 +103,10 @@ $JSON = '{ "display": false }, "scales": { - xAxes: [{ - type: "time", - time: { - unit: "hour" + "xAxes": [{ + "type": "time", + "time": { + "unit": "hour" } }], "yAxes": [{ @@ -115,10 +115,6 @@ $JSON = '{ "max": ' . $range['max'] . ', "steps": ' . $range['scale'] . ' } - }], - xAxes: [{ - type: "time", - distribution: "linear" }] }, "tooltips": {