From: Robert Konigsberg Date: Thu, 13 Jan 2011 01:38:12 +0000 (-0800) Subject: Clean up variable name and restore comment. X-Git-Tag: v1.0.0~587^2~12^2~16 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=3637724f4cfa6fa350394a9236863a33abb18a11;p=dygraphs.git Clean up variable name and restore comment. --- 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 ];