From f560d2e037a85f914fcec4a20f3a9f74fd788c98 Mon Sep 17 00:00:00 2001 From: Frank Wuerthwein Date: Sun, 10 May 2009 23:22:52 +0000 Subject: Document graphic_option and ds_graphic_option --- doc/lib/rrdFlot_js.html | 34 ++++++++++++++++++++++++++++++---- 1 file changed, 30 insertions(+), 4 deletions(-) diff --git a/doc/lib/rrdFlot_js.html b/doc/lib/rrdFlot_js.html index 75479ed..c1bb73c 100644 --- a/doc/lib/rrdFlot_js.html +++ b/doc/lib/rrdFlot_js.html @@ -84,21 +84,47 @@ creates an interactive -

graph_options

+

graph_options (optional)

-

Graphing options.

-

The default graphing options are: +

Global graphing options. See + Flot documentation + for more details.

+

The recognized elements and the default values are:

   graph_options = {
     legend: {position:"nw",noColumns:3},
+    lines: { show:true },
     yaxis: { autoscaleMargin: 0.20},
   };
 

+ + +

ds_graph_options (optional)

+ + +

Dictionary of graphing options. This must be a dictionary of DS_id. + Each element of the dictionary contains graphing options. See + Flot documentation + for more details.

+

The recognized elements and the default values are: +

+   {
+     title: label  or ds_name     // this is what is displayed at the radio button
+     checked: first_ds_in_list?   // boolean
+     label: title or ds_name      // this is what is displayed in the legend
+     color: ds_index              // see Flot docs for details
+     lines: { show:true }         // see Flot docs for details
+     yaxis: 1                     // can be 1 or 2
+     stack: 'none'                // other options are 'positive' and 'negative'
+   }
+

+ + -

Once instatiated, the object will automatically dra the plot and handle user interaction.

+

Once instatiated, the object will automatically draw the plot and handle user interaction.

-- cgit v1.1-4-g5e80