X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;ds=inline;f=tests%2Fhighlighted-region.html;h=588ddc46a777a5a83d54444c9509b9653e1cf869;hb=ea53f40ac43aee22a02a39e4422a110367505be0;hp=48d803e1e9cdcc4a4c670643a911eb9482902113;hpb=d9e6fa471081631155f03455c9ff47626684bcd3;p=dygraphs.git
diff --git a/tests/highlighted-region.html b/tests/highlighted-region.html
index 48d803e..588ddc4 100644
--- a/tests/highlighted-region.html
+++ b/tests/highlighted-region.html
@@ -1,13 +1,17 @@
+
+
Highlighted Region
-
-
-
-
+
+
+
@@ -32,19 +36,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);
}