xml = Builder::XmlMarkup.new
xml.chart(:caption=>'Problems by category', :numberPrefix=>'£', :formatNumberScale=>'0') do
for item in arr_data
xml.set(:label=>item[0], :value=>item[1])
end
xml.styles()do
xml.defintion() do
xml.style(:name=>'Mystyle', :type=>'font', :Color=>'FF3333')
end
xml.application()do
xml.apply(:toObject=>'Canvas', :styles=>'Mystyle')
end
end
end
Michael

Back to top
MultiQuote
