X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=tests%2Fhighlighted-region.html;h=d8b195ee7c66d384f5bae4ddef957a74705a826e;hb=6e20721120a88fcf451c19559dfc62e2d316dd85;hp=33d92e7c602d0ea59f1e5ac82ae71f742bc7f03a;hpb=1f75a05ce24d88587871a7305f1982010577cd33;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);