X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=docs%2Findex.html;h=9e652b5e1dcc2cc290fd51e786631258c0bcbf77;hb=dcb25130b93f7d1ca126c01fb90f1b1aa413c54d;hp=e06f7e9196243636b73949f4a661061b9a42d481;hpb=995b9973b84f282f4c54426e888834617c3cc1f4;p=dygraphs.git diff --git a/docs/index.html b/docs/index.html index e06f7e9..9e652b5 100644 --- a/docs/index.html +++ b/docs/index.html @@ -527,6 +527,17 @@ new Dygraph(el, data, {

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 noZoomFlagChange in the same + call to the updateOptions method. +

+

+ The no-zoom-change test shows this in operation. +

+

One last demo

This chart shows monthly closes of the Dow Jones Industrial Average, both in nominal and real (i.e. adjusted for inflation) dollars. The shaded areas show its monthly high and low. CPI values with a base from 1982-84 are used to adjust for inflation.

@@ -736,6 +747,13 @@ perl -ne 'BEGIN{print "Month,Nominal,Real\n"} chomp; ($m,$cpi,$low,$close,$high) + + Changing either of two the above options will cause the corresponding zoom + flag (isZoomed()) to be set, unless the noZoomFlagChange + option is also specified. + + + labelsSeparateLines boolean false @@ -1027,15 +1045,6 @@ perl -ne 'BEGIN{print "Month,Nominal,Real\n"} chomp; ($m,$cpi,$low,$close,$high) -<<<<<<< HEAD - noZoomFlagChange - - - - When this flag is passed along with either the dateWindow or valueRange options, the zoom flags are not changed to reflect a zoomed state. - This is primarily useful for when the display area of a chart is changed programmatically and also where manual zooming is allowed and use is made of the isZoomed method to determine this. -
Tests: no-zoom-change
-======= logscale boolean false @@ -1048,10 +1057,18 @@ perl -ne 'BEGIN{print "Month,Nominal,Real\n"} chomp; ($m,$cpi,$low,$close,$high)
Tests: logscale, stock
->>>>>>> a6a505d1759f087a1e29ad84fc8510aa4cbc4f6e + + noZoomFlagChange + + + + When this flag is passed along with either the dateWindow or valueRange options, the zoom flags are not changed to reflect a zoomed state. + This is primarily useful for when the display area of a chart is changed programmatically and also where manual zooming is allowed and use is made of the isZoomed method to determine this. +
Tests: no-zoom-change
+