Fix "bar" type to be vertical by default

Wed, 24 Jun 2009 19:36:34 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Wed, 24 Jun 2009 19:36:34 +0100
changeset 4
e17867506327
parent 3
49a62f0f4a96
child 5
b4983e638117

Fix "bar" type to be vertical by default

gchart.lua file | annotate | diff | comparison | revisions
--- a/gchart.lua	Wed Jun 24 14:46:26 2009 +0100
+++ b/gchart.lua	Wed Jun 24 19:36:34 2009 +0100
@@ -13,7 +13,7 @@
 
 -- Helpers
 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" };
+local typemap = { line = "lc", sparkline = "ls", plot = "lxy", bar = "bvs" };
 
 function new(type)
 	local chart_obj = {

mercurial