X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=tests%2Fis-zoomed.html;h=8af04ccd7c8797a433b99c14c36e8408508d2d16;hb=6611837c5490f2f4b6d61967aa1ad658ed5f11d4;hp=7aa1da2ecfabc99f3947d7ae562c7af5572d753a;hpb=48e614acf3084b9836803f8b014bf0e65f1ca119;p=dygraphs.git diff --git a/tests/is-zoomed.html b/tests/is-zoomed.html index 7aa1da2..8af04cc 100644 --- a/tests/is-zoomed.html +++ b/tests/is-zoomed.html @@ -1,15 +1,8 @@ - - isZoomedIgnoresProgrammaticZoom Flag - - - + + isZoomed method + @@ -20,9 +13,9 @@ If called with no argument, it will report whether either axis has been zoomed. Alternatively it can be called with an argument of either 'x' or 'y' and it will report the status of just that axis.

- +

Here's a simple example using drawCallback to display the various zoom states whenever the chart is zoomed:

- +
OUTPUT
@@ -33,11 +26,11 @@
- +

HTML
@@ -89,18 +82,7 @@ );

- +

The Tests for zoom operations show a full example of this in action.

- -

Programmatic Zoom

-

- When a chart is programmatically zoomed by updating either the dateWindow - or valueRange option, by default the zoomed flags are also updated correspondingly. - It is possible to prevent this by specifying the isZoomedIgnoreProgrammaticZoom in the same - call to the updateOptions method. -

-

- The is-zoomed-ignore-programmatic-zoom test shows this in operation. -