From 76ddea70eb0fce799dd5dbd434d2af4bd57b63d3 Mon Sep 17 00:00:00 2001 From: Bernhard Tittelbach Date: Sun, 13 Oct 2013 23:47:35 +0000 Subject: [PATCH] kiosk_bugfix --- raspberry-kiosk/kiosk.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/raspberry-kiosk/kiosk.js b/raspberry-kiosk/kiosk.js index 278d3d6..457a359 100644 --- a/raspberry-kiosk/kiosk.js +++ b/raspberry-kiosk/kiosk.js @@ -166,10 +166,10 @@ function loadCalendarMainPage() var gauges = {} function drawGauge(targetelem, label, temp, options) { - var data = google.visualization.arrayToDataTable([["Label", "Value"],[label,temp]]); // Create and draw the visualization. if (targetelem) { + var data = google.visualization.arrayToDataTable([["Label", "Value"],[label,temp]]); options["width"] = targetelem.getAttribute("width"); options["height"] = targetelem.getAttribute("height"); if (!gauges.hasOwnProperty(targetelem.id)) { @@ -216,7 +216,7 @@ function loadAndDrawSensorData() { drawLineGraph(document.getElementById('lightgooglegraph'), data["IlluminationSensorUpdate"], {curveType: "none", title: 'Illumination Sensors', vAxis: {maxValue: 1024, minValue:5}, chartArea:{left:32,top:20,width:"88%",height:"83%"}, legend: {position: "none"}} ,true); drawLineGraph(document.getElementById('movementgooglegraph'), data["MovementSensorUpdate"], - {curveType: "none", title: 'Movement Sensors', vAxis: {maxValue: 10, minValue:0}, chartArea:{left:32,top:20,width:"88%",height:"83%"}, legend: {position: "none"}} ,true); + {curveType: "function", title: 'Movement Sensors', vAxis: {maxValue: 10, minValue:0}, chartArea:{left:32,top:20,width:"88%",height:"83%"}, legend: {position: "none"}} ,true); }); } -- 1.7.10.4