From 32b3c532c99297ee1c3c73a4e136f7636ecf4e82 Mon Sep 17 00:00:00 2001 From: cTn Date: Sun, 13 Apr 2014 18:37:10 +0200 Subject: [PATCH] remove bogus code --- tabs/sensors.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tabs/sensors.js b/tabs/sensors.js index 41a962c002..937e569e25 100644 --- a/tabs/sensors.js +++ b/tabs/sensors.js @@ -95,7 +95,7 @@ function drawGraph(graphHelpers, data, sampleNumber) { limits.push(datum.min); limits.push(datum.max); }); - graphHelpers.heightScale.domain(d3.extent(limits)).ticks(5); + graphHelpers.heightScale.domain(d3.extent(limits)); } graphHelpers.widthScale.domain([(sampleNumber - 299), sampleNumber]); @@ -108,11 +108,6 @@ function drawGraph(graphHelpers, data, sampleNumber) { var lines = group.selectAll("path").data(data, function(d, i) { return i; }); var newLines = lines.enter().append("path").attr("class", "line"); lines.attr('d', graphHelpers.line); - - /* - svg.selectAll('.legend .item .value').data(data, function(d, i){ return i; }). - text(function(d) { return "[ " + d[d.length - 1][1].toFixed(2) + " ]"; }); - */ } function tab_initialize_sensors() {