summaryrefslogtreecommitdiff
path: root/doc/lib/rrdFlotSupport_js.html
diff options
context:
space:
mode:
authorFrank Wuerthwein <fkw@ucsd.edu>2009-03-13 02:53:45 +0000
committerFrank Wuerthwein <fkw@ucsd.edu>2009-03-13 02:53:45 +0000
commit39f4036480a7414600ac13403f9c9df0cb8b6ea9 (patch)
tree53f7cecd3408225d9fd6229e433d50f5aff2039f /doc/lib/rrdFlotSupport_js.html
parenta13bec31de18f9268d99fa027a7014e6592147e8 (diff)
Add example
Diffstat (limited to 'doc/lib/rrdFlotSupport_js.html')
-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>