X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=tests%2Fzoom.html;h=f53eab08ecb09942ca2c27db39df44c88c08bd7e;hb=a5f3d82dc74669f378a1e7c63e10bd9804ce4ca2;hp=483a1cecf1a453a86fd1157f3cc21b0d3e5c7818;hpb=965a030e724b6890b1ea651fb270d9fdc2699bb3;p=dygraphs.git diff --git a/tests/zoom.html b/tests/zoom.html index 483a1ce..f53eab0 100644 --- a/tests/zoom.html +++ b/tests/zoom.html @@ -1,13 +1,10 @@ + + zoom - - - - - + + @@ -16,8 +13,14 @@ buttons are useful for testing.

Window coordinates (in dates and values):

+
+

Zoomed: False

+

Zoomed X: False

+

Zoomed Y: False

+

+

Zoom operations:

  @@ -33,7 +36,7 @@

 

-   +      

@@ -44,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"); } } );