From af26aaa53d073a7b2d25caee93e1cb5ceb2e099c Mon Sep 17 00:00:00 2001 From: Igor Sfiligoi Date: Fri, 23 Oct 2009 09:07:01 -0400 Subject: flot-0.6 --- examples/ajax.html | 143 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 143 insertions(+) create mode 100644 examples/ajax.html (limited to 'examples/ajax.html') diff --git a/examples/ajax.html b/examples/ajax.html new file mode 100644 index 0000000..385a834 --- /dev/null +++ b/examples/ajax.html @@ -0,0 +1,143 @@ + + + + + Flot Examples + + + + + + +

Flot Examples

+ +
+ +

Example of loading data dynamically with AJAX. Percentage change in GDP (source: Eurostat). Click the buttons below.

+ +

The data is fetched over HTTP, in this case directly from text + files. Usually the URL would point to some web server handler + (e.g. a PHP page or Java/.NET/Python/Ruby on Rails handler) that + extracts it from a database and serializes it to JSON.

+ +

+ - + data - + +

+ +

+ - + data - + +

+ +

+ - + data - + +

+ +

If you combine AJAX with setTimeout, you can poll the server + for new data.

+ +

+ +

+ + + + + -- cgit v1.2.3-2-g168b