1 |
1 |
2 module(..., package.seeall); |
2 module(..., package.seeall); |
3 |
3 |
4 local chart = {}; |
4 local chart = {}; |
5 chart.__index = chart; |
5 chart.__index = chart; |
|
6 |
|
7 default = chart; -- Export defaults as the base chart object |
6 |
8 |
7 local writers = {}; -- Table of functions which build the URL |
9 local writers = {}; -- Table of functions which build the URL |
8 |
10 |
9 -- Defaults |
11 -- Defaults |
10 chart.base_url = "http://chart.apis.google.com/chart"; |
12 chart.base_url = "http://chart.apis.google.com/chart"; |