add HTML5 doctype to all tests
[dygraphs.git] / tests / connect-separated.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>connect separated</title>
5 <!--[if IE]>
6 <script type="text/javascript" src="../excanvas.js"></script>
7 <![endif]-->
8 <script type="text/javascript" src="../strftime/strftime-min.js"></script>
9 <script type="text/javascript" src="../rgbcolor/rgbcolor.js"></script>
10 <script type="text/javascript" src="../dygraph-canvas.js"></script>
11 <script type="text/javascript" src="../dygraph.js"></script>
12 </head>
13 <body>
14 <p>Connecting separated points. All three of the series should have their points
15 connected with lines, and hovering over them should produce dot and legend
16 overlays in the proper color.</p>
17
18 <div id="graphdiv" style="width:600px; height:300px;"></div>
19 <script type="text/javascript">
20 new Dygraph(document.getElementById("graphdiv"),
21 [
22 [ new Date("2009/12/01"), 10, 10, 10],
23 [ new Date("2009/12/02"), 15, 11, 12],
24 [ new Date("2009/12/03"), null, null, 12],
25 [ new Date("2009/12/04"), 20, 14, null],
26 [ new Date("2009/12/05"), 15, null, 17],
27 [ new Date("2009/12/06"), 18, null, null],
28 [ new Date("2009/12/07"), 12, 14, null]
29 ],
30 {
31 connectSeparatedPoints: true,
32 labels: ["Date","Series1","Series2","Series3"]
33 });
34 </script>
35 </body>
36 </html>