Added pixelRatio option to override canvas upscaling. Resolves #876, test included...
[dygraphs.git] / tests / plotter.html
index 58054b8..3942566 100644 (file)
@@ -1,16 +1,9 @@
 <!DOCTYPE html>
 <html>
   <head>
-    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7; IE=EmulateIE9">
+    <link rel="stylesheet" href="../dist/dygraph.css">
     <title>dygraphs Equation Plotter</title>
-    <!--[if IE]>
-    <script type="text/javascript" src="../excanvas.js"></script>
-    <![endif]-->
-    <!--
-    For production (minified) code, use:
-    <script type="text/javascript" src="dygraph-combined.js"></script>
-    -->
-    <script type="text/javascript" src="../dygraph-dev.js"></script>
+    <script type="text/javascript" src="../dist/dygraph.js"></script>
 
     <script type="text/javascript">
       function plot() {
           data.push(row);
         }
 
-        g = new Dygraph(graph, data);
+        var labels = ['X'];
+        if (data[0].length == 2) {
+          labels.push('Y');
+        } else {
+          for (var i = 1; i < data[0].length; i++) {
+            labels.push('Y' + (1 + i));
+          }
+        }
+
+        g = new Dygraph(graph, data, {
+          labels: labels
+        });
       }
 
       function preset() {