From: Dan Vanderkam Date: Thu, 30 Sep 2010 14:56:09 +0000 (-0400) Subject: fix copy/paste error X-Git-Tag: v1.0.0~622^2~25 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=e3b6727e88b6d18f8162088d979c7c2d386a1237;p=dygraphs.git fix copy/paste error --- diff --git a/dygraph.js b/dygraph.js index 521f2d7..a7fe70a 100644 --- a/dygraph.js +++ b/dygraph.js @@ -1830,7 +1830,7 @@ Dygraph.prototype.computeYaxes_ = function(extremes) { var maxY = -Infinity; // extremes[series[0]][1]; for (var j = 0; j < series.length; j++) { minY = Math.min(extremes[series[j]][0], minY); - maxY = Math.max(extremes[series[j]][0], maxY); + maxY = Math.max(extremes[series[j]][1], maxY); } if (axis.includeZero && minY > 0) minY = 0;