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: [ {