X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=tests%2Fhighlighted-region.html;h=588ddc46a777a5a83d54444c9509b9653e1cf869;hb=4c10c8d21b6858ea9029bdb789f487d9103d72f9;hp=0f1497374e4ecc5416a33d3c315ccec1543c865d;hpb=7e5ddc9488079169a4311f870727043b5216a81e;p=dygraphs.git diff --git a/tests/highlighted-region.html b/tests/highlighted-region.html index 0f14973..588ddc4 100644 --- a/tests/highlighted-region.html +++ b/tests/highlighted-region.html @@ -36,11 +36,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);