From: Dan Vanderkam Date: Sat, 28 Nov 2009 20:55:40 +0000 (-0500) Subject: rolling over missing data X-Git-Tag: v1.0.0~869 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=b7a294a83094bff2a5fe8c876037f86562fe7903;p=dygraphs.git rolling over missing data --- 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" ] + } + );