From 860d86ea5c28b2fb238103fbbfd307a4df484813 Mon Sep 17 00:00:00 2001 From: Igor Sfiligoi Date: Wed, 12 Sep 2012 19:14:44 +0000 Subject: Add more graph_opts in the example --- src/examples/rrdJFlotSimple.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/examples/rrdJFlotSimple.html b/src/examples/rrdJFlotSimple.html index 93dc92c..4240f70 100644 --- a/src/examples/rrdJFlotSimple.html +++ b/src/examples/rrdJFlotSimple.html @@ -83,7 +83,6 @@ function update_fname() { // Finally, update the file name and enable the update button - var graph_opts={legend: { noColumns:4}}; var ds_graph_opts={'Oscilator':{ color: "#ff8000", lines: { show: true, fill: true, fillColor:"#ffff80"} }, 'Idle':{ label: 'IdleJobs', color: "#00c0c0", @@ -92,13 +91,15 @@ + var graph_opts1={legend: { noColumns:4}, yaxis:{max:250,min:-200}}; var rrdflot_defaults1={graph_only:true,use_checked_DSs:true,checked_DSs:['SignChanger'],use_rra:true,rra:1} // the rrdFlot object creates and handles the graph - var f=new rrdFlot("mygraph1",rrd_data,graph_opts,ds_graph_opts,rrdflot_defaults1); + var f=new rrdFlot("mygraph1",rrd_data,graph_opts1,ds_graph_opts,rrdflot_defaults1); + var graph_opts2={legend: { noColumns:4}, yaxis:{min:100},tooltipOpts:{content:"MyValue: %y.3"}}; var rrdflot_defaults2={graph_only:true,use_checked_DSs:true,checked_DSs:['Oscilator'],use_rra:true,rra:0} // the rrdFlot object creates and handles the graph - var f=new rrdFlot("mygraph2",rrd_data,graph_opts,ds_graph_opts,rrdflot_defaults2); + var f=new rrdFlot("mygraph2",rrd_data,graph_opts2,ds_graph_opts,rrdflot_defaults2); } // This is the callback function that, -- cgit v1.2.3