X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=dygraph.js;h=f019f23175d79b38128292a4e0a82f7dfdfdf2e6;hb=6cebee6a9edb8378339488457281de4eaea0670a;hp=ae1faba4639bb94cf7a4db0874d63759f8ddd3b6;hpb=6512fe1e28b31618517c5f3a91786e75168255bd;p=dygraphs.git 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]; - } - } }; /**