Allow width/height to be specified as a % and as an attribute. Handle datetime proper...
[dygraphs.git] / tests / demo.html
index 5f21a80..eddc009 100644 (file)
@@ -12,7 +12,7 @@
     <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" style="width:480px; height:320px;"></div>
+    <div id="demodiv"></div>
     </td><td valign=top>
     <div id="status" style="width:200px; font-size:0.8em; padding-top:5px;"></div>
     </td>
@@ -43,7 +43,9 @@
                          "rgb(255,100,100)",
                          "#00DD55",
                          "rgba(50,50,200,0.4)"],
-                padding: {left: 40, right: 30, top: 15, bottom: 15}
+                padding: {left: 40, right: 30, top: 15, bottom: 15},
+                width:480,
+                height:320,
               }
           );
     </script>