nulls in array data
[dygraphs.git] / tests / missing-data.html
1 <html>
2 <head>
3 <title>missing data</title>
4 <!--[if IE]>
5 <script type="text/javascript" src="excanvas.js"></script>
6 <![endif]-->
7 <script type="text/javascript" src="../dygraph-combined.js"></script>
8 <script type="text/javascript" src="../dygraph-canvas.js"></script>
9 <script type="text/javascript" src="../plotkit_v091/PlotKit/Layout.js"></script>
10 <script type="text/javascript" src="../dygraph.js"></script>
11 </head>
12 <body>
13 <div id="graph"></div>
14 <div id="graph2"></div>
15 <div id="graph3"></div>
16
17 <script type="text/javascript">
18 new Dygraph(
19 document.getElementById("graph"),
20 "Date,GapSeries1,GapSeries2\n" +
21 "2009/12/01,10,10\n" +
22 "2009/12/02,15,11\n" +
23 "2009/12/03,,12\n" +
24 "2009/12/04,20,13\n" +
25 "2009/12/05,15,\n" +
26 "2009/12/06,18,15\n" +
27 "2009/12/07,12,16\n"
28 );
29
30 new Dygraph(
31 document.getElementById("graph2"),
32 [
33 [ new Date("2009/12/01"), 10, 10],
34 [ new Date("2009/12/02"), 15, 11],
35 [ new Date("2009/12/03"), null, 12],
36 [ new Date("2009/12/04"), 20, 13],
37 [ new Date("2009/12/05"), 15, null],
38 [ new Date("2009/12/06"), 18, 15],
39 [ new Date("2009/12/07"), 12, 16]
40 ],
41 { labels: ["Date","GapSeries1","GapSeries2"] }
42 );
43 </script>
44 </body>
45 </html>