From 6cebee6a9edb8378339488457281de4eaea0670a Mon Sep 17 00:00:00 2001 From: Robert Konigsberg Date: Tue, 26 Apr 2011 15:01:38 -0400 Subject: [PATCH] Fix bug 174. This is pulled from https://github.com/nealie/dygraphs/commit/d61581e981c0d8e9415e9950c330898b209753cb and if I knew how to pull that into my repo I'd do just that. --- dygraph.js | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/dygraph.js b/dygraph.js index ae1faba..f019f23 100644 --- a/dygraph.js +++ b/dygraph.js @@ -2619,15 +2619,6 @@ Dygraph.prototype.drawGraph_ = function() { * indices are into the axes_ array. */ Dygraph.prototype.computeYAxes_ = function() { - var valueWindows; - if (this.axes_ != undefined) { - // Preserve valueWindow settings. - valueWindows = []; - for (var index = 0; index < this.axes_.length; index++) { - valueWindows.push(this.axes_[index].valueWindow); - } - } - this.axes_ = [{ yAxisId : 0, g : this }]; // always have at least one y-axis. this.seriesToAxisMap_ = {}; @@ -2704,13 +2695,6 @@ Dygraph.prototype.computeYAxes_ = function() { if (vis[i - 1]) seriesToAxisFiltered[s] = this.seriesToAxisMap_[s]; } this.seriesToAxisMap_ = seriesToAxisFiltered; - - if (valueWindows != undefined) { - // Restore valueWindow settings. - for (var index = 0; index < valueWindows.length; index++) { - this.axes_[index].valueWindow = valueWindows[index]; - } - } }; /** -- 2.7.4