From 3637724f4cfa6fa350394a9236863a33abb18a11 Mon Sep 17 00:00:00 2001 From: Robert Konigsberg Date: Wed, 12 Jan 2011 17:38:12 -0800 Subject: [PATCH] Clean up variable name and restore comment. --- dygraph-canvas.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dygraph-canvas.js b/dygraph-canvas.js index 5c0fada..fc7ab1d 100644 --- a/dygraph-canvas.js +++ b/dygraph-canvas.js @@ -106,16 +106,16 @@ DygraphLayout.prototype._evaluateLineCharts = function() { for (var j = 0; j < dataset.length; j++) { var item = dataset[j]; - var foo; + var yval; if (this.dygraph_.attr_("logscale")) { - foo = 1.0 - ((Math.log(parseFloat(item[1])) - Math.log(axis.minyval)) * axis.ylogscale); // really should just be yscale. + yval = 1.0 - ((Math.log(parseFloat(item[1])) - Math.log(axis.minyval)) * axis.ylogscale); // really should just be yscale. } else { - foo = 1.0 - ((parseFloat(item[1]) - axis.minyval) * axis.yscale); + yval = 1.0 - ((parseFloat(item[1]) - axis.minyval) * axis.yscale); } var point = { // TODO(danvk): here x: ((parseFloat(item[0]) - this.minxval) * this.xscale), - y: foo, + y: yval, xval: parseFloat(item[0]), yval: parseFloat(item[1]), name: setName @@ -766,7 +766,7 @@ DygraphCanvasRenderer.prototype._renderLineChart = function() { continue; } - // TODO(danvk): here is a comment. + // TODO(danvk): here if (stepPlot) { var newYs = [ prevY - point.errorPlus * yscale, prevY + point.errorMinus * yscale ]; -- 2.7.4