From a1e8c3867181fdcad838fef709f2604e2c5cf305 Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Mon, 7 Dec 2009 18:13:53 -0800 Subject: [PATCH] fix an IE bug on the main page --- docs/index.html | 66 ++++++++++++++++++++++++++++++--------------------------- 1 file changed, 35 insertions(+), 31 deletions(-) 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: