From 63b0fc6269b38edf7234b9f151b80d81f614c0a3 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Tue, 4 Aug 2015 10:11:24 +0300 Subject: Initial commit First public commit --- static/js/flot/examples/selection/index.html | 141 +++++++++++++++++++++++++++ 1 file changed, 141 insertions(+) create mode 100755 static/js/flot/examples/selection/index.html (limited to 'static/js/flot/examples/selection') diff --git a/static/js/flot/examples/selection/index.html b/static/js/flot/examples/selection/index.html new file mode 100755 index 0000000..27f3367 --- /dev/null +++ b/static/js/flot/examples/selection/index.html @@ -0,0 +1,141 @@ + + + + + Flot Examples: Selection + + + + + + + + + + + +
+ +
+
+
+ +

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

+ +

Flot supports selections through the selection plugin. You can enable rectangular selection or one-dimensional selection if the user should only be able to select on one axis. Try left-click 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. Click 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. Enable the checkbox below and select a region again.

+ +

+ +
+ + + + + -- cgit v1.2.3