X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=docs%2Findex.html;h=20ea11cb6bdf2d27326c9df670fa863467ef6fb7;hb=a058247dbb5f8a765119e2abba3fb25d90d1ab4f;hp=22730f6439e7958821dc69b80f21efbd22cccdb0;hpb=0c75dc725812589a1b0c93a0800e1f4dc8b9dc59;p=dygraphs.git diff --git a/docs/index.html b/docs/index.html index 22730f6..20ea11c 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,12 +1,25 @@
+(Mouse over to highlight individual values. Click and drag to zoom. Double-click to zoom back out. Change the number and hit enter to adjust the averaging period.)
-In order to keep this example self-contained, the second parameter is raw CSV data. The dygraphs library parses this data (including column headers), resizes the its container to a reasonable default, calculates appropriate axis ranges and tick marks and draws the graph.
+In order to keep this example self-contained, the second parameter is raw CSV data. The dygraphs library parses this data (including column headers), resizes its container to a reasonable default, calculates appropriate axis ranges and tick marks and draws the graph.
In most applications, it makes more sense to include a CSV file instead. If the second parameter to the constructor doesn't contain a newline, it will be interpreted as the path to a CSV file. The Dygraph will perform an XMLHttpRequest to retrieve this file and display the data when it becomes available. Make sure your CSV file is readable and serving from a place that understands XMLHttpRequest's! In particular, you cannot specify a CSV file using "file:///"
. Here's an example: (data from Weather Underground)