Fix bugs in connectSeparatedPoints implementation. Add test.
[dygraphs.git] / tests / connect-separated.html
CommitLineData
563c70ca
AV
1<html>
2 <head>
3 <title>connect separated</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="../dygraph.js"></script>
10 </head>
11 <body>
12 <p>Connecting separated points. All three of the series should have their points
13 connected with lines, and hovering over them should produce dot and legend
14 overlays in the proper color.</p>
15
16 <div id="graphdiv" style="width:600px; height:300px;"></div>
17 <script type="text/javascript">
18 new Dygraph(document.getElementById("graphdiv"),
19 [
20 [ new Date("2009/12/01"), 10, 10, 10],
21 [ new Date("2009/12/02"), 15, 11, 12],
22 [ new Date("2009/12/03"), null, null, 12],
23 [ new Date("2009/12/04"), 20, 14, null],
24 [ new Date("2009/12/05"), 15, null, 17],
25 [ new Date("2009/12/06"), 18, null, 16],
26 [ new Date("2009/12/07"), 12, 14, 19]
27 ],
28 {
29 connectSeparatedPoints: true,
30 labels: ["Date","Series1","Series2","Series3"],
31 });
32 </script>
33 </body>
34</html>