century scale test
authorDan Vanderkam <danvdk@gmail.com>
Tue, 21 Dec 2010 22:30:00 +0000 (17:30 -0500)
committerDan Vanderkam <danvdk@gmail.com>
Tue, 21 Dec 2010 22:30:00 +0000 (17:30 -0500)
tests/century-scale.html [new file with mode: 0644]

diff --git a/tests/century-scale.html b/tests/century-scale.html
new file mode 100644 (file)
index 0000000..74737ac
--- /dev/null
@@ -0,0 +1,44 @@
+<html>
+  <head>
+    <title>demo</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>
+  </head>
+  <body>
+    <h2>Demo</h2>
+    <font size=-1>(Mouse over to highlight individual values. Click and drag to zoom. Double-click to zoom out.)</font><br/>
+    <table><tr><td>
+    <div id="demodiv"></div>
+    </td><td valign=top>
+    <div id="status" style="width:200px; font-size:0.8em; padding-top:5px;"></div>
+    </td>
+    </tr></table>
+    <script type="text/javascript">
+      g = new Dygraph(
+              document.getElementById("demodiv"),
+              "Date,Value\n" +
+              "1776/01/01,100\n" +
+              "1876/01/01,200\n" + 
+              "1976/01/01,150\n",
+              {
+                rollPeriod: 1,
+                labelsDiv: document.getElementById('status'),
+                labelsSeparateLines: true,
+                labelsKMB: true,
+                colors: ["rgb(51,204,204)",
+                         "rgb(255,100,100)",
+                         "#00DD55",
+                         "rgba(50,50,200,0.4)"],
+                padding: {left: 40, right: 30, top: 15, bottom: 15},
+                width: 480,
+                height: 320
+              }
+          );
+    </script>
+</body>
+</html>