# HG changeset patch # User Matthew Wild # Date 1245818079 -3600 # Node ID 107b9d00e4d45ef6efc6ba78c38e4f8a195e20cb # Parent f930ba6a89230e55b218fa2003a39223a04abf96 gchart.new_chart() => gchart.new() diff -r f930ba6a8923 -r 107b9d00e4d4 gchart.lua --- 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 = {};