From bcce4a48b51f237e062a27dc811222d297754fe2 Mon Sep 17 00:00:00 2001 From: David Schnur Date: Fri, 1 Feb 2013 22:57:30 -0500 Subject: [PATCH] Load the first AJAX series by default. We don't want users to think the example is broken when they first load it. --- examples/ajax/index.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/ajax/index.html b/examples/ajax/index.html index 5a9e055..35ce10d 100644 --- a/examples/ajax/index.html +++ b/examples/ajax/index.html @@ -112,6 +112,10 @@ setTimeout(fetchData, 1000); }); + // Load the first series by default, so we don't have an empty plot + + $("button.fetchSeries:first").click(); + // Add the Flot version string to the footer $("#footer").prepend("Flot " + $.plot.version + " – ");