X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=tests%2Fzoom.html;h=a835dc379102c2e24d3c5365e3fedfc4a5b37c47;hb=c715be428d83d80c0a26fd60dc5bc36fb4c908d9;hp=65f23a4c20325c53213e0a1c5b5356342a940123;hpb=e14b35042fcba0a67878e0bafe8d4f85c82116c5;p=dygraphs.git diff --git a/tests/zoom.html b/tests/zoom.html index 65f23a4..a835dc3 100644 --- a/tests/zoom.html +++ b/tests/zoom.html @@ -6,10 +6,12 @@ - - - - + + +
@@ -18,8 +20,14 @@ buttons are useful for testing.Zoomed: False
+Zoomed X: False
+Zoomed Y: False
+Zoom operations:
@@ -46,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"); } } );