add spacing test
[dygraphs.git] / tests / spacing.html
diff --git a/tests/spacing.html b/tests/spacing.html
new file mode 100644 (file)
index 0000000..ca84bb1
--- /dev/null
@@ -0,0 +1,33 @@
+<html>
+  <head>
+    <title>spacing</title>
+    <!--[if IE]>
+    <script type="text/javascript" src="excanvas.js"></script>
+    <![endif]-->
+    <script type="text/javascript" src="../dygraph-combined.js"></script>
+    <script type="text/javascript" src="../dygraph.js"></script>
+    <script type="text/javascript" src="data.js"></script>
+  </head>
+  <body>
+    <p>Wide</p>
+    <div id="g" style="width:600px; height:300px;"></div>
+
+    <p>Narrow</p>
+    <div id="g2" style="width:300px; height:200px;"></div>
+
+    <script type="text/javascript">
+      g = new DateGraph(
+            document.getElementById("g"),
+            data, null, {
+              rollPeriod: 7
+            }
+          );
+      g2 = new DateGraph(
+            document.getElementById("g2"),
+            data, null, {
+              rollPeriod: 7,
+            }
+          );
+    </script>
+  </body>
+</html>