X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=tests%2Fhighlighted-region.html;h=d8b195ee7c66d384f5bae4ddef957a74705a826e;hb=64f1c4dfd7425931fcd1bd9949157c0ba6958656;hp=33d92e7c602d0ea59f1e5ac82ae71f742bc7f03a;hpb=a2b2c3a13b968bf10c9dbea58683b0f51011b547;p=dygraphs.git diff --git a/tests/highlighted-region.html b/tests/highlighted-region.html index 33d92e7..d8b195e 100644 --- a/tests/highlighted-region.html +++ b/tests/highlighted-region.html @@ -1,13 +1,10 @@ + + Highlighted Region - - - - - + + @@ -32,12 +29,13 @@ } - new Dygraph( + var g = new Dygraph( document.getElementById("div_g"), data, { labels: ['X', 'Est.', 'Actual'], - underlayCallback: function(canvas, area, layout, g) { + animatedZooms: true, + underlayCallback: function(canvas, area, g) { var bottom_left = g.toDomCoords(highlight_start, -20); var top_right = g.toDomCoords(highlight_end, +20);