From 3388c8e03f1e753f7af460f62bdac3bc1fe09e19 Mon Sep 17 00:00:00 2001 From: Frank Wuerthwein Date: Sun, 3 May 2009 15:28:44 +0000 Subject: Add title option --- src/lib/rrdFlot.js | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/src/lib/rrdFlot.js b/src/lib/rrdFlot.js index 5046e10..57fdf4c 100644 --- a/src/lib/rrdFlot.js +++ b/src/lib/rrdFlot.js @@ -25,7 +25,7 @@ * [Flot]/jquery.flot.js */ -/* graph_options defaults +/* graph_options defaults (see Flot docs for details) * { * legend: { position:"nw",noColumns:3}, * lines: { show:true }, @@ -36,10 +36,11 @@ * with each element being a graph_option * The defaults for each element are * { - * label: ds_name + * title: ds_name // this is what is displayed at the radio button + * label: ds_name // this is what is displayed in the legend * color: ds_index - * lines: { show:true } - * yaxis: 1 + * lines: { show:true } // see Flot docs for detail + * yaxis: 1 // can be 1 or 2 * stack: 'none' // other options are 'positive' and 'negative' * } */ @@ -200,12 +201,12 @@ rrdFlot.prototype.populateDScb = function() { for (var i=0; i