summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIgor Sfiligoi <isfiligoi@ucsd.edu>2012-09-12 19:14:44 +0000
committerIgor Sfiligoi <isfiligoi@ucsd.edu>2012-09-12 19:14:44 +0000
commit860d86ea5c28b2fb238103fbbfd307a4df484813 (patch)
treebde345ece90f5570a4103066900118b5bf696716 /src
parentb202256cd18bb7051eede89b5e610af592a51412 (diff)
Add more graph_opts in the example
Diffstat (limited to 'src')
-rw-r--r--src/examples/rrdJFlotSimple.html7
1 files changed, 4 insertions, 3 deletions
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,