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