From 1102c8f5b0ce8ed6ba1b939dd00db1813ba40f58 Mon Sep 17 00:00:00 2001 From: dorian Date: Sun, 14 Jul 2019 18:51:43 +0200 Subject: [PATCH] minor changes and fixes --- js/dashboard.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/js/dashboard.js b/js/dashboard.js index 8521344..b977d27 100644 --- a/js/dashboard.js +++ b/js/dashboard.js @@ -142,8 +142,11 @@ class BlueWeatherDashboard { case "text": // the widget is pure text thisWidget.classList.add("text-center") - thisBody.innerHTML = '
' + latestVal.measvalue + valueType.valueunit + '
' - break + thisBody.innerHTML = '

' + latestVal.measvalue + valueType.valueunit + '

' + + + //thisBody.innerHTML = 'Fit Meeeeeeeeeeee' + break } firstRow.appendChild(thisWidget) @@ -260,7 +263,7 @@ class BlueWeatherDashboard { chartData.data.push({ x: vals[i]["timestamp"], y: vals[i]["measvalue"] }) } - Object.assign(chartData.datasets[0], JSON.parse(valueType.displayproperty)) + Object.assign(chartData.datasets[0], JSON.parse(valueType.displayproperty)["chart"]["properties"]) Object.assign(chartData.datasets[0], { data: chartData.data, pointRadius: chartData.data.length > 500 ? 0 : 3 }) mainContent.innerHTML = ""