root/lang/io/WebAPI/GoogleChart/sample.io

Revision 15532, 0.5 kB (checked in by nowelium, 5 months ago)
Line 
1doFile("GoogleChart.io")
2doFile("Types.io")
3doFile("Labels.io")
4doFile("Colors.io")
5doFile("Data.io")
6doFile("Styles.io")
7
8types := Types clone
9types PieChart p3
10
11labels := Labels clone
12labels Title chtt("""
13    GoogleChart sample
14    by Io WebAPI
15""")
16
17labels Label chl("hoge", "foo", "bar")
18
19data := Data clone
20data Text chd("60", "30", "10")
21
22/*
23colors := Colors clone
24colors ChartColors chco
25*/
26
27styles := Styles clone
28styles size(320, 200)
29
30GoogleChart URL withQuery(types, labels, data, styles) asHTML println
Note: See TracBrowser for help on using the browser.