From: Neal Nelson Date: Tue, 8 Feb 2011 11:21:38 +0000 (+0100) Subject: Restructured the noZoomFlagChange test page and added explanations. X-Git-Tag: v1.0.0~536^2~1^2~5 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=485efa38c78a3ad6a345c48d4807cc29ce272be4;p=dygraphs.git Restructured the noZoomFlagChange test page and added explanations. --- diff --git a/tests/no-zoom-change.html b/tests/no-zoom-change.html index e1b93d0..155a879 100644 --- a/tests/no-zoom-change.html +++ b/tests/no-zoom-change.html @@ -1,6 +1,6 @@ - zoom + noZoomFlagChange Flag @@ -11,40 +11,74 @@ -

Click the buttons to change the date and value windows of the chart.

-

Window coordinates (in dates and values):

-
-
+

noZoomFlagChange Operation

+

+ By default, when the dateWindow or updateOptions + of a chart is changed programmatically by a call to updateOptions + the zoomed flags (isZoomed) are changed. This is the same + as manually zooming in using the mouse. +

+

+ Sometimes it may be desirable to change the display of the chart by + manipulating the dateWindow and valueRange + options but without changing the zoomed flags, for example where manual + zooming is still required but where it is also desired that the zoomed + flags drive display elements, but only for manual zooming. +

+

+ In this case noZoomFlagChange may be specified along with + either the dateWindow or valueRange values to + updateOptions and the zoomed flags will remain unaffected. +

+

+ The chart below may be manipulated to change the updateOptions + using the Max and Min Y axis buttons and the dateWindow + by using the Max and Min X axis buttons. +

+

+ Toggle the check box below to determine the difference in operation of the zoom flags + when the date and value windows of the chart are changed using the arrows underneath. +

+

Do not change zoom flags (noZoomFlagChange)

+
-

- Toggle the check box below to determine the difference in operation of the zoom flags - when the date and value windows of the chart are changed using the arrows underneath. -

- Do not change zoom -
+
+

+ Max Y Axis: + + +

+

+ Min Y Axis: + + +

+

+ Min X Axis: + + +

+

+ Max X Axis: + + +

+
+
+
-
-

Zoomed: False

-

Zoomed X: False

-

Zoomed Y: False

+

-
-

-

-

- - -

-

-

-
-
-
-

- - -

+
+

Zoomed Flags

+

Zoomed: False

+

Zoomed X: False

+

Zoomed Y: False

+

Window coordinates (in dates and values):

+
+
+