+ {
+ labels: ["Date","GapSeries1","GapSeries2"],
+ showRoller: true
+ }
+ );
+
+ g3 = new Dygraph(
+ document.getElementById("graph3"),
+ [
+ [1, [10, 2], [20, 3]],
+ [2, [12, 2], [20, 3]],
+ [3, [ 8, 2], [20, 3]],
+ [4, [null, 2], [20, 3]],
+ [5, [null, 2], [null, 3]],
+ [6, [ 9, 2], [20, 3]],
+ [7, [10, 2], [20, 3]]
+ ],
+ {
+ errorBars: true,
+ labels: [ "X", "Series1", "Series2" ]
+ }
+ );
+
+ g4 = new Dygraph(
+ document.getElementById("graph4"),
+ [
+ [1, [10, 2], [20, 3]],
+ [2, [12, 2], [20, 3]],
+ [3, [ 8, 2], [20, 3]],
+ [4, [null, 2], [20, 3]],
+ [5, [null, 2], [null, 3]],
+ [6, [ 9, 2], [20, 3]],
+ [7, [10, 2], [20, 3]]
+ ],
+ {
+ errorBars: true,
+ rollPeriod: 2,
+ labels: [ "X", "Series1", "Series2" ]
+ }