diff options
author | Frank Wuerthwein <fkw@ucsd.edu> | 2009-04-30 00:39:27 +0000 |
---|---|---|
committer | Frank Wuerthwein <fkw@ucsd.edu> | 2009-04-30 00:39:27 +0000 |
commit | 8e135b5e98b463f6654a18e90fb360bca73381fe (patch) | |
tree | dcd4e56a89edca0d13cb0970da4aeb56e94039d7 /src | |
parent | 2a35d73c7059514adc6b5f8d7febf346dd823675 (diff) |
Use graph_options and ds_graph_options
Diffstat (limited to 'src')
-rw-r--r-- | src/examples/rrdJFlot.html | 9 |
1 files changed, 8 insertions, 1 deletions
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, |