Wed, 24 Jun 2009 05:34:39 +0100
gchart.new_chart() => gchart.new()
gchart.lua | file | annotate | diff | comparison | revisions |
--- a/gchart.lua Wed Jun 24 05:34:09 2009 +0100 +++ b/gchart.lua Wed Jun 24 05:34:39 2009 +0100 @@ -15,7 +15,7 @@ local function urlencode(s) return s and (s:gsub("%W", function (c) return string.format("%%%02x", c:byte()); end)); end local typemap = { line = "lc", sparkline = "ls", plot = "lxy", bar = "bhs" }; -function new_chart(type) +function new(type) local chart_obj = { type = typemap[type] or type or "lc"; series = {};