From: Dan Vanderkam Date: Tue, 8 Dec 2009 02:13:53 +0000 (-0800) Subject: fix an IE bug on the main page X-Git-Tag: v1.0.0~810 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;ds=sidebyside;h=a1e8c3867181fdcad838fef709f2604e2c5cf305;p=dygraphs.git fix an IE bug on the main page --- diff --git a/docs/index.html b/docs/index.html index c1d9ed5..0440c3a 100644 --- a/docs/index.html +++ b/docs/index.html @@ -178,7 +178,7 @@ See gallery and gallery and - + +

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 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)

@@ -227,14 +228,15 @@ See gallery and - + +

Click here to view the temperatures.csv file. There are a few things to note here: