From 39f4036480a7414600ac13403f9c9df0cb8b6ea9 Mon Sep 17 00:00:00 2001 From: Frank Wuerthwein Date: Fri, 13 Mar 2009 02:53:45 +0000 Subject: Add example --- doc/lib/rrdFlotSupport_js.html | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/doc/lib/rrdFlotSupport_js.html b/doc/lib/rrdFlotSupport_js.html index c3f2747..0173e8b 100644 --- a/doc/lib/rrdFlotSupport_js.html +++ b/doc/lib/rrdFlotSupport_js.html @@ -339,5 +339,16 @@ rrdDS2FlotSeries(...).data +

Pseudo-example of use: +

+  myplotplot.bind("plotselected", function (event, ranges) {
+      // do the zooming
+      selection_range.setFromFlotRanges(ranges);
+      graph_options.xaxis.min=ranges.xaxis.from;
+      graph_options.xaxis.max=ranges.xaxis.to;
+      mygraph = $.plot("#mygraph", selection_range.trim_flot_data(flot_data), graph_options);
+  });
+
+

-- cgit v1.1-4-g5e80