root/lang/io/WebAPI/GoogleChart/Data.io

Revision 15534, 0.9 kB (checked in by nowelium, 5 months ago)
Line 
1doFile("GoogleChart.io")
2
3// @author nowelium
4Data := GoogleChart clone do(
5    __data__ := Object clone do(
6        data ::= nil
7    )
8    Text := method(
9        __data__ clone setData(self) do(
10            chd := method(
11                data query addParameter("chd", "t:" .. call message argsEvaluatedIn(call target) join(","))
12            )
13            chds := method(value,
14                data query addParameter("chds", value)
15            )
16        )
17    )
18
19    Scale := method(
20    )
21
22    Simple := method(
23       
24    )
25
26    Extended := method(
27        __data__ clone setData(self) do(
28            chd := method(value,
29                data query addParameter("chd", "e:" .. call message argsEvaluatedIn(call target) join(","))
30            )
31            chds := method(value,
32                data query addParameter("chds", value)
33            )
34        )
35    )
36)
Note: See TracBrowser for help on using the browser.