X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=tests%2Fzoom.html;h=f53eab08ecb09942ca2c27db39df44c88c08bd7e;hb=00eebc92ec7d1846599bf233dbc63b9ea3ac3095;hp=a79e1418787ce114669b21c5b9e3236e9458c9f5;hpb=44f29e932dcbe83c1bfaebb8735579392e27a5df;p=dygraphs.git diff --git a/tests/zoom.html b/tests/zoom.html index a79e141..f53eab0 100644 --- a/tests/zoom.html +++ b/tests/zoom.html @@ -1,15 +1,10 @@ - + zoom - - - - - + + @@ -18,8 +13,14 @@ buttons are useful for testing.

Window coordinates (in dates and values):

+
+

Zoomed: False

+

Zoomed X: False

+

Zoomed Y: False

+

+

Zoom operations:

  @@ -35,7 +36,7 @@

 

-   +      

@@ -46,8 +47,13 @@ document.getElementById("div_g"), NoisyData, { errorBars: true, - zoomCallback : function(minDate, maxDate, yRanges) { - showDimensions(minDate, maxDate, yRanges); + zoomCallback: function(minDate, maxDate, yRange) { + showDimensions(minDate, maxDate, yRange); + }, + drawCallback: function() { + document.getElementById("zoomed").innerHTML = "" + this.isZoomed(); + document.getElementById("zoomedX").innerHTML = "" + this.isZoomed("x"); + document.getElementById("zoomedY").innerHTML = "" + this.isZoomed("y"); } } );