Merge branch 'master' of http://github.com/danvk/dygraphs
authorNeal Nelson <neal@makalumedia.com>
Tue, 7 Dec 2010 13:37:49 +0000 (14:37 +0100)
committerNeal Nelson <neal@makalumedia.com>
Tue, 7 Dec 2010 13:37:49 +0000 (14:37 +0100)
Conflicts:
tests/zoom.html

1  2 
dygraph.js
tests/zoom.html

diff --cc dygraph.js
@@@ -1096,11 -1084,9 +1096,10 @@@ Dygraph.prototype.doZoomX_ = function(l
   */
  Dygraph.prototype.doZoomXDates_ = function(minDate, maxDate) {
    this.dateWindow_ = [minDate, maxDate];
 +  this.zoomed_x_ = true;
    this.drawGraph_();
    if (this.attr_("zoomCallback")) {
-     var yRange = this.yAxisRange();
-     this.attr_("zoomCallback")(minDate, maxDate, yRange[0], yRange[1]);
+     this.attr_("zoomCallback")(minDate, maxDate, this.yAxisRanges());
    }
  };
  
diff --cc tests/zoom.html
              document.getElementById("div_g"),
              NoisyData, {
                errorBars: true,
-               zoomCallback : function(a,b,c,d) {
-                 showDimensions(a,b,c,d);
+               zoomCallback : function(minDate, maxDate, yRange) {
+                 showDimensions(minDate, maxDate, yRange);
 +              },
 +              drawCallback: function(me, initial) {
 +                document.getElementById("zoomed").innerHTML = "" + me.isZoomed();
 +                document.getElementById("zoomedX").innerHTML = "" + me.isZoomed("x");
 +                document.getElementById("zoomedY").innerHTML = "" + me.isZoomed("y");
                }
              }
            );