root/lang/io/WebAPI/GoogleChart/Types.io

Revision 15534, 2.4 kB (checked in by nowelium, 5 months ago)
Line 
1doFile("GoogleChart.io")
2
3// @author nowelium
4Types := GoogleChart clone do(
5    addParameter := method(arg0, arg1,
6        if(call argCount < 2) then (
7            query atPut("cht", arg0)
8        ) else (
9            query atPut(arg0, arg1)
10        )
11    )
12    __chart__ := Object clone do(
13        chart ::= nil
14    )
15
16    LineChart := method(
17        __chart__ clone setChart(self) do(
18            lc := method(
19                chart addParameter("lc")
20            )
21            lxy := method(
22                chart addParameter("lxy")
23            )
24        )
25    )
26
27    SparkLines := method(
28        __chart__ clone setChart(self) do(
29           ls := method(
30                chart addParameter("ls")
31            )
32        )
33    )
34
35    BarChart := method(
36        __chart__ clone setChart(self) do(
37           bhs := method(
38                chart addParameter("bhs")
39            )
40            bvs := method(
41                chart addParameter("bvs")
42            )
43            bhg := method(
44                chart addParameter("bhg")
45            )
46            bvg := method(
47                chart addParameter("bvg")
48            )
49        )
50    )
51
52    PieChart := method(
53        __chart__ clone setChart(self) do(
54            p := method(
55                chart addParameter("p")
56            )
57            p3 := method(
58                chart addParameter("p3")
59            )
60        )
61    )
62
63    VennDiagrams := method(
64        __chart__ clone setChart(self) do(
65            v := method(
66                chart addParameter("v")
67            )
68        )
69    )
70
71    ScatterPlots := method(
72        __chart__ clone setChart(self) do(
73            s := method(
74                chart addParameter("s")
75            )
76        )
77    )
78
79    RadarChars := method(
80        __chart__ clone setChart(self) do(
81            r := method(
82                chart addParameter("r")
83            )
84        )
85    )
86
87    Maps := method(
88        __chart__ clone setChart(self) do(
89            area := method(name,
90                chart addParameter("t")
91                chart addParameter("chtm", name)
92            )
93        )
94    )
95
96    Meter := method(
97        __chart__ clone setChart(self) do(
98            gom := method(
99                chart addParameter("gom")
100            )
101        )
102    )
103
104    QRCodes := method(
105        __chart__ clone setChart(self) do(
106            qr := method(
107                chart addParameter("qr")
108            )
109        )
110    )
111)
Note: See TracBrowser for help on using the browser.