X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=tests%2Fhighlighted-region.html;h=f932c86375ccd89e9d3baf6d9a240e32db62da0e;hb=a4094ad124afb9c88c2023e9fd23e7017ab93218;hp=0f1497374e4ecc5416a33d3c315ccec1543c865d;hpb=7e5ddc9488079169a4311f870727043b5216a81e;p=dygraphs.git diff --git a/tests/highlighted-region.html b/tests/highlighted-region.html index 0f14973..f932c86 100644 --- a/tests/highlighted-region.html +++ b/tests/highlighted-region.html @@ -1,16 +1,13 @@ - + Highlighted Region - - + @@ -36,11 +33,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);