From 7385ff9506ea6db4c07150ee1b56e436cf384918 Mon Sep 17 00:00:00 2001 From: Frank Wuerthwein Date: Thu, 25 Sep 2008 06:12:15 -0400 Subject: flot-0.5 --- examples/selection.html | 107 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 107 insertions(+) create mode 100644 examples/selection.html (limited to 'examples/selection.html') diff --git a/examples/selection.html b/examples/selection.html new file mode 100644 index 0000000..4a745d7 --- /dev/null +++ b/examples/selection.html @@ -0,0 +1,107 @@ + + + + + Flot Examples + + + + + + +

Flot Examples

+ +
+ +

1000 kg. CO2 emissions per year per capita for various countries (source: Wikipedia).

+ +

Flot supports selections. You can enable + rectangular selection + or one-dimensional selection if the user should only be able to + select on one axis. Try left-clicking and drag on the plot above + where selection on the x axis is enabled.

+ +

You selected:

+ +

The plot command returns a Plot object you can use to control + the selection. Try clicking the buttons below.

+ +

+

+ +

Selections are really useful for zooming. Just replot the + chart with min and max values for the axes set to the values + in the "plotselected" event triggered. Try enabling the checkbox + below and select a region again.

+ +

Zoom to selection.

+ + + + + -- cgit v1.2.3