From: Neal Nelson Date: Tue, 11 Jan 2011 15:19:58 +0000 (+0100) Subject: Added setting of zoom flags when dateWindow and valueRange updated. X-Git-Tag: v1.0.0~536^2~1^2~11 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=b7e5862d8d2a7b4c63982bc96a79f91fec5a0e9b;p=dygraphs.git Added setting of zoom flags when dateWindow and valueRange updated. --- diff --git a/dygraph.js b/dygraph.js index 320c8ae..a0c063f 100644 --- a/dygraph.js +++ b/dygraph.js @@ -2934,6 +2934,10 @@ Dygraph.prototype.updateOptions = function(attrs) { } if ('dateWindow' in attrs) { this.dateWindow_ = attrs.dateWindow; + this.zoomed_x_ = attrs.dateWindow != null; + } + if ('valueRange' in attrs) { + this.zoomed_y_ = attrs.valueRange != null; } // TODO(danvk): validate per-series options.