X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=tests%2Fhighlighted-region.html;h=be2986b8058d026f837d1910c25be5b68d9a8db1;hb=056763ed22ccc5bdebc73355841052d0d6815a1f;hp=bc07cc899597c430c78c8dfb4e596676c40a3745;hpb=10494b48b43d9ca8710d441d3c530c7d546f3edf;p=dygraphs.git diff --git a/tests/highlighted-region.html b/tests/highlighted-region.html index bc07cc8..be2986b 100644 --- a/tests/highlighted-region.html +++ b/tests/highlighted-region.html @@ -1,15 +1,13 @@ - Highlighted Region - - - - - + + + @@ -34,11 +32,12 @@ } - new Dygraph( + var g = new Dygraph( document.getElementById("div_g"), data, { labels: ['X', 'Est.', 'Actual'], + animatedZooms: true, underlayCallback: function(canvas, area, g) { var bottom_left = g.toDomCoords(highlight_start, -20); var top_right = g.toDomCoords(highlight_end, +20);