Template:Toyama/Matrix: Difference between revisions

mNo edit summary
mNo edit summary
Line 1: Line 1:
{{#graph:vbar|size=100x300;title={{PAGENAME}};legend=0x0;
{{#lua:
{{#lua:
for name,activity in stdin:gmatch("&&([%S ,]+)&&([-.0-9]+)") do
label = ""
   print(name)
data  = ""
for i,j in stdin:gmatch("&&([%S ]+)&&([-.0-9]+)") do
   label = label .. "," .. i
  data  = data .. "," .. j
end
end
label = string.sub(label,1)
data = string.sub(data,1)
print("label=" .. label .. ";data=" .. data ";")
|{{{1}}}
|{{{1}}}
}}
}}

Revision as of 20:49, 5 October 2009

{{#graph:vbar|size=100x300;title=Toyama/Matrix;legend=0x0; {{#lua: label = "" data = "" for i,j in stdin:gmatch("&&([%S ]+)&&([-.0-9]+)") do

 label = label .. "," .. i
 data  = data .. "," .. j

end label = string.sub(label,1) data = string.sub(data,1) print("label=" .. label .. ";data=" .. data ";") |{{{1}}} }}

Metabolite Activity