From 8e135b5e98b463f6654a18e90fb360bca73381fe Mon Sep 17 00:00:00 2001 From: Frank Wuerthwein Date: Thu, 30 Apr 2009 00:39:27 +0000 Subject: Use graph_options and ds_graph_options --- src/examples/rrdJFlot.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/examples/rrdJFlot.html b/src/examples/rrdJFlot.html index 9bcb965..c843910 100644 --- a/src/examples/rrdJFlot.html +++ b/src/examples/rrdJFlot.html @@ -64,8 +64,15 @@ // Finally, update the file name and enable the update button document.getElementById("fname").firstChild.data=fname; + 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", + lines: { show: true, fill: true} }, + 'Running':{color: "#000000",yaxis:2}}; + // the rrdFlot object creates and handles the graph - var f=new rrdFlot("mygraph",rrd_data,null); + var f=new rrdFlot("mygraph",rrd_data,graph_opts,ds_graph_opts); } // This is the callback function that, -- cgit v1.1-4-g5e80