summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/lib/rrdFlotSupport_js.html11
1 files changed, 11 insertions, 0 deletions
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
</TBODY>
</TABLE>
</DIV>
+<P>Pseudo-example of use:
+<PRE>
+ 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);
+ });
+</PRE>
+</P>
</BODY>
</HTML>