Commit bcce4a48 authored by David Schnur's avatar David Schnur

Load the first AJAX series by default.

We don't want users to think the example is broken when they first load
it.
parent 840937cf
...@@ -112,6 +112,10 @@ ...@@ -112,6 +112,10 @@
setTimeout(fetchData, 1000); 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 // Add the Flot version string to the footer
$("#footer").prepend("Flot " + $.plot.version + " – "); $("#footer").prepend("Flot " + $.plot.version + " – ");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment