From 1946f7ceb9125de69c2b123567a34590faa4b21f Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Sat, 5 Dec 2009 17:58:17 -0800 Subject: [PATCH] update docs with temperature demo --- README | 12 +- docs/index.html | 35 +- docs/ny-vs-sf.txt | 1071 ++++++++++++++++++++++++++++++++++++++++++++ docs/temperature-notes.txt | 16 + 4 files changed, 1114 insertions(+), 20 deletions(-) create mode 100644 docs/ny-vs-sf.txt create mode 100644 docs/temperature-notes.txt 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>
 
-
+