tests pass
[dygraphs.git] / tests / missing-data.html
CommitLineData
54425b14 1<!DOCTYPE html>
1ce3af6f
DV
2<html>
3 <head>
10494b48 4 <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7; IE=EmulateIE9">
9a730910 5 <title>missing data</title>
1ce3af6f 6 <!--[if IE]>
a2b2c3a1 7 <script type="text/javascript" src="../excanvas.js"></script>
1ce3af6f 8 <![endif]-->
d37dca40
DV
9 <script type="text/javascript" src="../strftime/strftime-min.js"></script>
10 <script type="text/javascript" src="../rgbcolor/rgbcolor.js"></script>
1ce3af6f
DV
11 <script type="text/javascript" src="../dygraph-canvas.js"></script>
12 <script type="text/javascript" src="../dygraph.js"></script>
13 </head>
14 <body>
5011e7a1
DV
15 <table>
16 <tr><td valign=top>
1ce3af6f 17 <div id="graph"></div>
584ceeaa 18 <div id="graph2"></div>
5011e7a1 19 </td><td valign=top>
584ceeaa 20 <div id="graph3"></div>
b7a294a8 21 <div id="graph4"></div>
5011e7a1
DV
22 </td></tr>
23 </table>
584ceeaa 24
1ce3af6f 25 <script type="text/javascript">
24e5350c 26 g = new Dygraph(
1ce3af6f 27 document.getElementById("graph"),
9a730910
DV
28 "Date,GapSeries1,GapSeries2\n" +
29 "2009/12/01,10,10\n" +
30 "2009/12/02,15,11\n" +
31 "2009/12/03,,12\n" +
32 "2009/12/04,20,13\n" +
33 "2009/12/05,15,\n" +
34 "2009/12/06,18,15\n" +
35 "2009/12/07,12,16\n"
1ce3af6f 36 );
584ceeaa 37
24e5350c 38 g2 = new Dygraph(
584ceeaa
DV
39 document.getElementById("graph2"),
40 [
41 [ new Date("2009/12/01"), 10, 10],
42 [ new Date("2009/12/02"), 15, 11],
43 [ new Date("2009/12/03"), null, 12],
44 [ new Date("2009/12/04"), 20, 13],
45 [ new Date("2009/12/05"), 15, null],
46 [ new Date("2009/12/06"), 18, 15],
47 [ new Date("2009/12/07"), 12, 16]
48 ],
2847c1cf
DV
49 {
50 labels: ["Date","GapSeries1","GapSeries2"],
51 showRoller: true
52 }
584ceeaa 53 );
5011e7a1 54
24e5350c 55 g3 = new Dygraph(
5011e7a1
DV
56 document.getElementById("graph3"),
57 [
58 [1, [10, 2], [20, 3]],
bb441ec6
DV
59 [2, [12, 2], [20, 3]],
60 [3, [ 8, 2], [20, 3]],
61 [4, [null, 2], [20, 3]],
62 [5, [null, 2], [null, 3]],
63 [6, [ 9, 2], [20, 3]],
d16579a0 64 [7, [10, 2], [20, 3]]
5011e7a1
DV
65 ],
66 {
67 errorBars: true,
68 labels: [ "X", "Series1", "Series2" ]
69 }
70 );
b7a294a8 71
24e5350c 72 g4 = new Dygraph(
b7a294a8
DV
73 document.getElementById("graph4"),
74 [
75 [1, [10, 2], [20, 3]],
bb441ec6
DV
76 [2, [12, 2], [20, 3]],
77 [3, [ 8, 2], [20, 3]],
78 [4, [null, 2], [20, 3]],
79 [5, [null, 2], [null, 3]],
80 [6, [ 9, 2], [20, 3]],
d16579a0 81 [7, [10, 2], [20, 3]]
b7a294a8
DV
82 ],
83 {
84 errorBars: true,
85 rollPeriod: 2,
86 labels: [ "X", "Series1", "Series2" ]
87 }
88 );
1ce3af6f
DV
89 </script>
90 </body>
91</html>