summaryrefslogtreecommitdiff
path: root/src/examples/rrdJFlotSimple.html
diff options
context:
space:
mode:
Diffstat (limited to 'src/examples/rrdJFlotSimple.html')
-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,