Merge pull request #256 from kberg/auto-tests
[dygraphs.git] / tests / connect-separated.html
index 31ebc24..96dd9a5 100644 (file)
@@ -1,13 +1,17 @@
+<!DOCTYPE html>
 <html>
   <head>
+    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7; IE=EmulateIE9">
     <title>connect separated</title>
     <!--[if IE]>
     <script type="text/javascript" src="../excanvas.js"></script>
     <![endif]-->
-    <script type="text/javascript" src="../strftime/strftime-min.js"></script>
-    <script type="text/javascript" src="../rgbcolor/rgbcolor.js"></script>
-    <script type="text/javascript" src="../dygraph-canvas.js"></script>
-    <script type="text/javascript" src="../dygraph.js"></script>
+    <!--
+    For production (minified) code, use:
+    <script type="text/javascript" src="dygraph-combined.js"></script>
+    -->
+    <script type="text/javascript" src="../dygraph-dev.js"></script>
+
   </head>
   <body>
     <p>Connecting separated points.  All three of the series should have their points
 
     <div id="graphdiv" style="width:600px; height:300px;"></div>
     <script type="text/javascript">
-      new Dygraph(document.getElementById("graphdiv"),
+      var g = new Dygraph(document.getElementById("graphdiv"),
       [
         [ new Date("2009/12/01"), 10, 10, 10],
         [ new Date("2009/12/02"), 15, 11, 12],
         [ new Date("2009/12/03"), null, null, 12],
         [ new Date("2009/12/04"), 20, 14, null],
         [ new Date("2009/12/05"), 15, null, 17],
-        [ new Date("2009/12/06"), 18, null, 16],
-        [ new Date("2009/12/07"), 12, 14, 19]
+        [ new Date("2009/12/06"), 18, null, null],
+        [ new Date("2009/12/07"), 12, 14, null]
       ],
       {
         connectSeparatedPoints: true,
-        labels: ["Date","Series1","Series2","Series3"],
+        labels: ["Date","Series1","Series2","Series3"]
       });
     </script>
   </body>