summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank Wuerthwein <fkw@ucsd.edu>2009-04-30 00:39:27 +0000
committerFrank Wuerthwein <fkw@ucsd.edu>2009-04-30 00:39:27 +0000
commit8e135b5e98b463f6654a18e90fb360bca73381fe (patch)
treedcd4e56a89edca0d13cb0970da4aeb56e94039d7
parent2a35d73c7059514adc6b5f8d7febf346dd823675 (diff)
Use graph_options and ds_graph_options
-rw-r--r--src/examples/rrdJFlot.html9
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,