X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=tests%2Fhighlighted-region.html;h=d8b195ee7c66d384f5bae4ddef957a74705a826e;hb=64f1c4dfd7425931fcd1bd9949157c0ba6958656;hp=bc07cc899597c430c78c8dfb4e596676c40a3745;hpb=e14b35042fcba0a67878e0bafe8d4f85c82116c5;p=dygraphs.git diff --git a/tests/highlighted-region.html b/tests/highlighted-region.html index bc07cc8..d8b195e 100644 --- a/tests/highlighted-region.html +++ b/tests/highlighted-region.html @@ -1,15 +1,10 @@ - + Highlighted Region - - - - - + + @@ -34,11 +29,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);