Move busui to seperate repository
[bus.git] / owa.chart.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
OWA.chart = function() {
 
        this.config = OWA.config;
        
        return; 
}
 
OWA.chart.prototype = {
 
        properties: new Object,
        
        config: '',
        
        dom_id: '',
        
        data: '',
        
        height: "100%",
        
        width: "100%",
        
        render: function() {
        
                 swfobject.embedSWF(this.config.modules_url + "base/js/includes/" + this.config.ofc_version + "/open-flash-chart.swf", this.dom_id, this.width, this.height, "9.0.0", "expressInstall.swf", {"get-data":"OWA.items['"+this.dom_id+"'].getData", id: this.dom_id});
                 
        },
        
        getData: function() {
        
                 //alert( 'reading data...obj' );
                 return JSON.stringify(this.data);
        },
        
        setData: function(data) {
        
                this.data = data;
                return;
        },
        
        setHeight: function(height) {
                
                this.height = height;
                return;
        },
        
        setWidth: function(width) {
                
                this.width = width;
                return;
        },
        
        setDomId: function(dom_id) {
                
                this.dom_id = dom_id;
                return;
        }
        
}