From b7a294a83094bff2a5fe8c876037f86562fe7903 Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Sat, 28 Nov 2009 15:55:40 -0500 Subject: [PATCH] rolling over missing data --- tests/missing-data.html | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/tests/missing-data.html b/tests/missing-data.html index e6eb648..aee2701 100644 --- a/tests/missing-data.html +++ b/tests/missing-data.html @@ -16,6 +16,7 @@
+
@@ -53,7 +54,7 @@ [2, [12, 2], [22, 3]], [3, [ 8, 2], [25, 3]], [4, [null, 2], [18, 3]], - [5, [11, 2], [20, 3]], + [5, [11, 2], [null, 3]], [6, [ 9, 2], [22, 3]], [7, [10, 2], [23, 3]], ], @@ -62,6 +63,24 @@ labels: [ "X", "Series1", "Series2" ] } ); + + new Dygraph( + document.getElementById("graph4"), + [ + [1, [10, 2], [20, 3]], + [2, [12, 2], [22, 3]], + [3, [ 8, 2], [25, 3]], + [4, [null, 2], [18, 3]], + [5, [11, 2], [null, 3]], + [6, [ 9, 2], [22, 3]], + [7, [10, 2], [23, 3]], + ], + { + errorBars: true, + rollPeriod: 2, + labels: [ "X", "Series1", "Series2" ] + } + ); -- 2.7.4