Commit a2718dbe authored by David Schnur's avatar David Schnur

Add the Flot version to each example's footer.

parent 79c3e25f
...@@ -111,6 +111,10 @@ ...@@ -111,6 +111,10 @@
setTimeout(fetchData, 1000); setTimeout(fetchData, 1000);
}); });
// Add the Flot version string to the footer
$("#footer").prepend("Flot " + $.plot.version + " – ");
}); });
</script> </script>
......
...@@ -55,6 +55,10 @@ ...@@ -55,6 +55,10 @@
ctx.lineTo(o.left, o.top); ctx.lineTo(o.left, o.top);
ctx.fillStyle = "#000"; ctx.fillStyle = "#000";
ctx.fill(); ctx.fill();
// Add the Flot version string to the footer
$("#footer").prepend("Flot " + $.plot.version + " &ndash; ");
}); });
</script> </script>
......
...@@ -61,6 +61,10 @@ ...@@ -61,6 +61,10 @@
$("#click").text("You clicked the " + axis.direction + axis.n + "axis!") $("#click").text("You clicked the " + axis.direction + axis.n + "axis!")
}); });
}); });
// Add the Flot version string to the footer
$("#footer").prepend("Flot " + $.plot.version + " &ndash; ");
}); });
</script> </script>
......
...@@ -42,6 +42,9 @@ ...@@ -42,6 +42,9 @@
doPlot($(this).text()); doPlot($(this).text());
}); });
// Add the Flot version string to the footer
$("#footer").prepend("Flot " + $.plot.version + " &ndash; ");
}); });
</script> </script>
......
...@@ -73,6 +73,10 @@ ...@@ -73,6 +73,10 @@
timezone: "America/Chicago" timezone: "America/Chicago"
} }
}); });
// Add the Flot version string to the footer
$("#footer").prepend("Flot " + $.plot.version + " &ndash; ");
}); });
</script> </script>
......
...@@ -91,6 +91,9 @@ ...@@ -91,6 +91,9 @@
}); });
}); });
// Add the Flot version string to the footer
$("#footer").prepend("Flot " + $.plot.version + " &ndash; ");
}); });
</script> </script>
......
...@@ -57,6 +57,10 @@ ...@@ -57,6 +57,10 @@
} }
} }
}); });
// Add the Flot version string to the footer
$("#footer").prepend("Flot " + $.plot.version + " &ndash; ");
}); });
</script> </script>
......
...@@ -23,6 +23,10 @@ ...@@ -23,6 +23,10 @@
var d3 = [[0, 12], [7, 12], null, [7, 2.5], [12, 2.5]]; var d3 = [[0, 12], [7, 12], null, [7, 2.5], [12, 2.5]];
$.plot("#placeholder", [ d1, d2, d3 ]); $.plot("#placeholder", [ d1, d2, d3 ]);
// Add the Flot version string to the footer
$("#footer").prepend("Flot " + $.plot.version + " &ndash; ");
}); });
</script> </script>
......
...@@ -28,6 +28,9 @@ ...@@ -28,6 +28,9 @@
} }
}); });
// Add the Flot version string to the footer
$("#footer").prepend("Flot " + $.plot.version + " &ndash; ");
}); });
</script> </script>
......
...@@ -33,6 +33,10 @@ ...@@ -33,6 +33,10 @@
$.plot.image.loadDataImages(data, options, function () { $.plot.image.loadDataImages(data, options, function () {
$.plot("#placeholder", data, options); $.plot("#placeholder", data, options);
}); });
// Add the Flot version string to the footer
$("#footer").prepend("Flot " + $.plot.version + " &ndash; ");
}); });
</script> </script>
......
...@@ -88,6 +88,10 @@ ...@@ -88,6 +88,10 @@
plot.highlight(item.series, item.datapoint); plot.highlight(item.series, item.datapoint);
} }
}); });
// Add the Flot version string to the footer
$("#footer").prepend("Flot " + $.plot.version + " &ndash; ");
}); });
</script> </script>
......
...@@ -117,6 +117,10 @@ ...@@ -117,6 +117,10 @@
addArrow("right", 25, 60, { left: 100 }); addArrow("right", 25, 60, { left: 100 });
addArrow("up", 40, 45, { top: -100 }); addArrow("up", 40, 45, { top: -100 });
addArrow("down", 40, 75, { top: 100 }); addArrow("down", 40, 75, { top: 100 });
// Add the Flot version string to the footer
$("#footer").prepend("Flot " + $.plot.version + " &ndash; ");
}); });
</script> </script>
......
...@@ -45,6 +45,10 @@ ...@@ -45,6 +45,10 @@
position: "se" position: "se"
} }
}); });
// Add the Flot version string to the footer
$("#footer").prepend("Flot " + $.plot.version + " &ndash; ");
}); });
</script> </script>
......
...@@ -88,6 +88,10 @@ ...@@ -88,6 +88,10 @@
} }
update(); update();
// Add the Flot version string to the footer
$("#footer").prepend("Flot " + $.plot.version + " &ndash; ");
}); });
</script> </script>
......
...@@ -40,6 +40,10 @@ ...@@ -40,6 +40,10 @@
minWidth: 450, minWidth: 450,
minHeight: 250, minHeight: 250,
}); });
// Add the Flot version string to the footer
$("#footer").prepend("Flot " + $.plot.version + " &ndash; ");
}); });
</script> </script>
......
...@@ -94,6 +94,10 @@ ...@@ -94,6 +94,10 @@
} }
}); });
}); });
// Add the Flot version string to the footer
$("#footer").prepend("Flot " + $.plot.version + " &ndash; ");
}); });
</script> </script>
......
...@@ -118,6 +118,10 @@ ...@@ -118,6 +118,10 @@
interactive: true interactive: true
} }
}); });
// Add the Flot version string to the footer
$("#footer").prepend("Flot " + $.plot.version + " &ndash; ");
}); });
</script> </script>
......
...@@ -659,6 +659,10 @@ ...@@ -659,6 +659,10 @@
// Show the initial default chart // Show the initial default chart
$("#example-1").click(); $("#example-1").click();
// Add the Flot version string to the footer
$("#footer").prepend("Flot " + $.plot.version + " &ndash; ");
}); });
// A custom label formatter used by several of the plots // A custom label formatter used by several of the plots
......
...@@ -86,6 +86,10 @@ ...@@ -86,6 +86,10 @@
} }
plotAccordingToChoices(); plotAccordingToChoices();
// Add the Flot version string to the footer
$("#footer").prepend("Flot " + $.plot.version + " &ndash; ");
}); });
</script> </script>
......
...@@ -58,6 +58,10 @@ ...@@ -58,6 +58,10 @@
data: d6, data: d6,
lines: { show: true, steps: true } lines: { show: true, steps: true }
}]); }]);
// Add the Flot version string to the footer
$("#footer").prepend("Flot " + $.plot.version + " &ndash; ");
}); });
</script> </script>
......
...@@ -64,6 +64,10 @@ ...@@ -64,6 +64,10 @@
steps = $(this).text().indexOf("steps") != -1; steps = $(this).text().indexOf("steps") != -1;
plotWithOptions(); plotWithOptions();
}); });
// Add the Flot version string to the footer
$("#footer").prepend("Flot " + $.plot.version + " &ndash; ");
}); });
</script> </script>
......
...@@ -44,6 +44,10 @@ ...@@ -44,6 +44,10 @@
hoverable: true hoverable: true
} }
}); });
// Add the Flot version string to the footer
$("#footer").prepend("Flot " + $.plot.version + " &ndash; ");
}); });
</script> </script>
......
...@@ -38,6 +38,10 @@ ...@@ -38,6 +38,10 @@
var t = parseFloat($(this).text().replace("Threshold at ", "")); var t = parseFloat($(this).text().replace("Threshold at ", ""));
plotWithOptions(t); plotWithOptions(t);
}); });
// Add the Flot version string to the footer
$("#footer").prepend("Flot " + $.plot.version + " &ndash; ");
}); });
</script> </script>
......
...@@ -99,6 +99,10 @@ ...@@ -99,6 +99,10 @@
updateLegendTimeout = setTimeout(updateLegend, 50); updateLegendTimeout = setTimeout(updateLegend, 50);
} }
}); });
// Add the Flot version string to the footer
$("#footer").prepend("Flot " + $.plot.version + " &ndash; ");
}); });
</script> </script>
......
...@@ -108,6 +108,10 @@ ...@@ -108,6 +108,10 @@
$("#overview").bind("plotselected", function (event, ranges) { $("#overview").bind("plotselected", function (event, ranges) {
plot.setSelection(ranges); plot.setSelection(ranges);
}); });
// Add the Flot version string to the footer
$("#footer").prepend("Flot " + $.plot.version + " &ndash; ");
}); });
</script> </script>
......
...@@ -111,6 +111,10 @@ ...@@ -111,6 +111,10 @@
$("#overview").bind("plotselected", function (event, ranges) { $("#overview").bind("plotselected", function (event, ranges) {
plot.setSelection(ranges); plot.setSelection(ranges);
}); });
// Add the Flot version string to the footer
$("#footer").prepend("Flot " + $.plot.version + " &ndash; ");
}); });
</script> </script>
......
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