From 9b31d5062918b7b5fad243b0fc82b6cc7066062d Mon Sep 17 00:00:00 2001 From: dorian Date: Thu, 11 Jul 2019 21:26:36 +0200 Subject: [PATCH] chart is a bit bigger now --- dashboard.html | 14 +++++++------- js/dashboard.js | 5 +++-- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/dashboard.html b/dashboard.html index 98f8d37..f6866f5 100644 --- a/dashboard.html +++ b/dashboard.html @@ -1,5 +1,5 @@ - + @@ -17,7 +17,7 @@ - + -
-
+
+
-
+

Dashboard

@@ -104,7 +104,7 @@
- -
+
diff --git a/js/dashboard.js b/js/dashboard.js index 46b272d..3138d44 100644 --- a/js/dashboard.js +++ b/js/dashboard.js @@ -69,7 +69,7 @@ function setPage(page) { chartData.data.push({ x: vals[i]["timestamp"], y: vals[i]["measvalue"] }) } - mainContent.innerHTML = "" + mainContent.innerHTML = "" setPageTitle(chartData.label) blueweather.log("creating chart with data: " + JSON.stringify(chartData), 3) @@ -113,7 +113,8 @@ function createDiagram(canvasId, data) { }; var chartOptions = { - + responsive:true, + maintainAspectRatio: false, scales: { yAxes: [ {