summaryrefslogtreecommitdiff
path: root/ebus/webapp/static/src
diff options
context:
space:
mode:
Diffstat (limited to 'ebus/webapp/static/src')
-rw-r--r--ebus/webapp/static/src/d3.control.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ebus/webapp/static/src/d3.control.js b/ebus/webapp/static/src/d3.control.js
index def7c65..124575b 100644
--- a/ebus/webapp/static/src/d3.control.js
+++ b/ebus/webapp/static/src/d3.control.js
@@ -30,12 +30,12 @@ d3_control.prototype = {
d3.select(this).remove();
});
popup.append("div")
- .text(sensor_name);
+ .text(options.sensor);
var startdate = (new Date().getTime()/1000) - 7*60*60*24;
var enddate = (new Date().getTime()/1000);
var plot = d3.plot(popup);
- d3.json("../sensor/"+sensor_name+"/" + startdate + "/" + enddate,
+ d3.json("../sensor/"+options.sensor+"/" + startdate + "/" + enddate,
function(resp) {
var data = resp.data.map(function(d) {
return [new Date(d[0]), d[1]];
@@ -77,4 +77,4 @@ d3_control.prototype = {
d3.control = function(element, svgurl, mapping) {
return new d3_control(element,svgurl,mapping);
-}; \ No newline at end of file
+};