summaryrefslogtreecommitdiffstats
path: root/qooxdoo/source/class/Smokeping/ui/GraphList.js
diff options
context:
space:
mode:
Diffstat (limited to 'qooxdoo/source/class/Smokeping/ui/GraphList.js')
-rw-r--r--qooxdoo/source/class/Smokeping/ui/GraphList.js13
1 files changed, 12 insertions, 1 deletions
diff --git a/qooxdoo/source/class/Smokeping/ui/GraphList.js b/qooxdoo/source/class/Smokeping/ui/GraphList.js
index 66420f7..5d9bc58 100644
--- a/qooxdoo/source/class/Smokeping/ui/GraphList.js
+++ b/qooxdoo/source/class/Smokeping/ui/GraphList.js
@@ -45,7 +45,18 @@ qx.Class.define('Smokeping.ui.GraphList',
var files = m.getData()
this.removeAll();
for(var i=0;i<files.length;i++){
- var image = new Smokeping.ui.Graph(this._url + 'grapher.cgi?g=' + files[i],150,75);
+ var shadow = new Smokeping.GraphShadow();
+ shadow.set({
+ width: 150,
+ height: 75,
+ start: Math.round((new Date()).getTime()/1000)-(3600*24*3),
+ end: Math.round((new Date()).getTime()/1000),
+ top: 1000000,
+ bottom: 0,
+ cgi: this._url + 'grapher.cgi',
+ data: files[i]
+ });
+ var image = new Smokeping.ui.Graph(shadow);
this.add(image);
}
}