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 = ""