Added pixelRatio option to override canvas upscaling. Resolves #876, test included...
[dygraphs.git] / tests / dynamic-update.html
index 38328ea..26feaef 100644 (file)
@@ -1,16 +1,14 @@
+<!DOCTYPE html>
 <html>
   <head>
+    <link rel="stylesheet" href="../dist/dygraph.css">
     <title>Live random data</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-canvas.js"></script>
-    <script type="text/javascript" src="../dygraph.js"></script>
+    <script type="text/javascript" src="../dist/dygraph.js"></script>
+
   </head>
   <body>
-    <div id="div_g" style="width:600px; height:300px;"></div>
-    <div id="status"></div>
+    <h3 style="width:800px; text-align: center;">Live random data</h3>
+    <div id="div_g" style="width:800px; height:400px;"></div>
 
     <script type="text/javascript">
       var data = [];
       }, 1000);
 
     </script>
+
+    <p>This test is modeled after a <a
+      href="http://www.highcharts.com/demo/?example=dynamic-update&theme=default">highcharts
+      test</a>. New points should appear once per second. Try zooming and
+    panning over to the right edge to watch them show up.</p>
   </body>
 </html>