X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=tests%2Fhighlighted-region.html;h=588ddc46a777a5a83d54444c9509b9653e1cf869;hb=c36a62c2638dd9a4ce0c91146b9bcb2557168aff;hp=33d92e7c602d0ea59f1e5ac82ae71f742bc7f03a;hpb=fb25c8b6d070c7e347b260ef39917220b6159e4e;p=dygraphs.git diff --git a/tests/highlighted-region.html b/tests/highlighted-region.html index 33d92e7..588ddc4 100644 --- a/tests/highlighted-region.html +++ b/tests/highlighted-region.html @@ -1,13 +1,17 @@ + + Highlighted Region - - - - + + + @@ -32,12 +36,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);