X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;ds=sidebyside;f=tests%2Fzoom.html;h=a835dc379102c2e24d3c5365e3fedfc4a5b37c47;hb=e79c8bec6d181f70521450a22b5174a41495ec9b;hp=6073a33276923747c539e7fc9779033ca77589cf;hpb=9ec21d0ac23104544e00892196eca0129c5e504a;p=dygraphs.git diff --git a/tests/zoom.html b/tests/zoom.html index 6073a33..a835dc3 100644 --- a/tests/zoom.html +++ b/tests/zoom.html @@ -1,13 +1,17 @@ +
+Zoomed: False
+Zoomed X: False
+Zoomed Y: False
+Zoom operations:
@@ -44,8 +54,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(me, initial) { + document.getElementById("zoomed").innerHTML = "" + me.isZoomed(); + document.getElementById("zoomedX").innerHTML = "" + me.isZoomed("x"); + document.getElementById("zoomedY").innerHTML = "" + me.isZoomed("y"); } } );