X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=dygraph.js;h=d9997e9d334b68fa3346efd604374e96ce1be636;hb=9fa43d8fc3b517a6bdeddbb1dd77d26c6423eefe;hp=49843a490c689eec50f6c52853d9a71493f9083c;hpb=c0f54d4f7444bea88d6c26020c566b42b3fe45e5;p=dygraphs.git diff --git a/dygraph.js b/dygraph.js index 49843a4..d9997e9 100644 --- a/dygraph.js +++ b/dygraph.js @@ -814,14 +814,6 @@ Dygraph.prototype.createInterface_ = function() { this.rangeSelector_.addToGraph(this.graphDiv, this.layout_); } - // Create the grapher - this.layout_ = new DygraphLayout(this); - - if (this.rangeSelector_) { - // This needs to happen after the graph canvases are added to the div and the layout object is created. - this.rangeSelector_.addToGraph(this.graphDiv, this.layout_); - } - var dygraph = this; Dygraph.addEvent(this.mouseEventElement_, 'mousemove', function(e) { dygraph.mouseMove_(e); @@ -1939,8 +1931,10 @@ Dygraph.prototype.gatherDatasets_ = function(rolledSeries, dateWindow) { if (bars) { for (var j=0; j