From: Dan Vanderkam Date: Sun, 6 Dec 2009 01:58:17 +0000 (-0800) Subject: update docs with temperature demo X-Git-Tag: v1.0.0~814 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=1946f7ceb9125de69c2b123567a34590faa4b21f;p=dygraphs.git update docs with temperature demo --- diff --git a/README b/README index 7d38152..f81cc24 100644 --- a/README +++ b/README @@ -14,10 +14,6 @@ Features - Customizable click-through actions - Compatible with the Google Visualization API -Caveats -- Requires Firefox 1.5+ or Safari/WebKit? 1.3+. -- Internet Explorer is poorly supported. - Demo For a gallery and documentation, see http://danvk.org/dygraphs/ @@ -43,8 +39,12 @@ Minimal Example License(s) dygraphs uses: - - MochiKit (MIT License) - - PlotKit (BSD License) + - rgbcolor.js (Public Domain) + - strftime.js (BSD License) - excanvas.js (Apache License) +rgbcolor: http://www.phpied.com/rgb-color-parser-in-javascript/ +strftime: http://tech.bluesmoon.info/2008/04/strftime-in-javascript.html +excanvas: http://code.google.com/p/explorercanvas/ + dygraphs is available under the MIT license, included in LICENSE.txt. diff --git a/docs/index.html b/docs/index.html index a91bf06..c053e6a 100644 --- a/docs/index.html +++ b/docs/index.html @@ -104,14 +104,17 @@
 <html>
 <head>
-<script type="text/javascript" src="combined.js"></script>
+<script type="text/javascript"
+  src="combined.js"></script>
 </head>
 <body>
 <div id="graphdiv"></div>
 <script type="text/javascript">
   g = new Dygraph(
-        document.getElementById("graphdiv"),  // containing div
-        "Date,Temperature\n" +                // CSV or path to a CSV file.
+        // containing div
+        document.getElementById("graphdiv"),
+        // CSV or path to a CSV file.
+        "Date,Temperature\n" +
         "20080507,75\n" +
         "20080508,70\n" +
         "20080509,80\n",
@@ -143,22 +146,24 @@
 
 <html>
 <head>
-<script type="text/javascript" src="combined.js"></script>
+<script type="text/javascript"
+  src="combined.js"></script>
 </head>
 <body>
-<div id="graphdiv" style="width:600px; height:300px;"></div>
+<div id="graphdiv"
+  style="width:500px; height:300px;"></div>
 <script type="text/javascript">
   g = new Dygraph(
         document.getElementById("graphdiv"),
         "temperatures.csv",  // path to CSV file
-        {}                   // additional options
+        {}                   // options
       );
 </script>
 </body>
 </html>
 
-
+