From b7e5862d8d2a7b4c63982bc96a79f91fec5a0e9b Mon Sep 17 00:00:00 2001 From: Neal Nelson Date: Tue, 11 Jan 2011 16:19:58 +0100 Subject: [PATCH] Added setting of zoom flags when dateWindow and valueRange updated. --- dygraph.js | 4 ++++ 1 file changed, 4 insertions(+) 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. -- 2.7.4