gchart.new_chart() => gchart.new()

Wed, 24 Jun 2009 05:34:39 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Wed, 24 Jun 2009 05:34:39 +0100
changeset 2
107b9d00e4d4
parent 1
f930ba6a8923
child 3
49a62f0f4a96

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 = {};

mercurial