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