X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=tests%2Fzoom.html;h=8c9e64141ea6934f2c0e1a299f7f195ec1066275;hb=37567cceaeaee48596653c1b59adb12fca8dbc26;hp=62252a15727920f87d9c98f47c442266e9807379;hpb=2f5e7e1a7f5fd071b08ce92167fcab8863234075;p=dygraphs.git diff --git a/tests/zoom.html b/tests/zoom.html index 62252a1..8c9e641 100644 --- a/tests/zoom.html +++ b/tests/zoom.html @@ -16,8 +16,14 @@ buttons are useful for testing.
Zoomed: False
+Zoomed X: False
+Zoomed Y: False
+Zoom operations:
@@ -40,7 +46,14 @@ document.getElementById("div_g"), NoisyData, { errorBars: true, - zoomCallback : function(a,b,c,d) { showDimensions(a,b,c,d); } + zoomCallback : function(a,b,c,d) { + showDimensions(a,b,c,d); + }, + drawCallback: function(me, initial) { + document.getElementById("zoomed").innerHTML = me.zoomed ? "True" : "False"; + document.getElementById("zoomedX").innerHTML = me.zoomedX ? "True" : "False"; + document.getElementById("zoomedY").innerHTML = me.zoomedY ? "True" : "False"; + } } );