X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=tests%2Fhighlighted-region.html;h=be2986b8058d026f837d1910c25be5b68d9a8db1;hb=6eef8c1b9ec7b247ee2b508032bd3ec957d0fb68;hp=48d803e1e9cdcc4a4c670643a911eb9482902113;hpb=d9e6fa471081631155f03455c9ff47626684bcd3;p=dygraphs.git diff --git a/tests/highlighted-region.html b/tests/highlighted-region.html index 48d803e..be2986b 100644 --- a/tests/highlighted-region.html +++ b/tests/highlighted-region.html @@ -1,13 +1,13 @@ + Highlighted Region - - - - - + + + @@ -32,19 +32,20 @@ } - 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); var left = bottom_left[0]; var right = top_right[0]; - canvas.fillStyle = "rgba(255, 255, 102, 0.5)"; + canvas.fillStyle = "rgba(255, 255, 102, 1.0)"; canvas.fillRect(left, area.y, right - left, area.h); }