I am trying to style my charts and am having issues getting the xml databuilder to change the chart. I have added the following simple example. Although it seems to build correctly i do not see any changes in the chart. Any clues?
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
Page 1 of 1
Styles and XML builder How to add styles when building the xml file
Other Replies To This Topic
#2
Posted 27 February 2009 - 07:45 PM
1. Please change xml.defintion() to xml.definition() - typo.
2. Font style cannot be applied to Canvas. Please check the page http://www.fusioncharts.com/Docs/Contents/Styles/HowToUse.html , for each Object the Supported Feature is listed there.
I have given detailed reply in the FusionCharts v3 forum. Please check that: http://www.fusioncharts.com/forum/Topic12044-34-1.aspx#bm12058
regards,
Srividya Sharma
Srividya Sharma
Other Replies To This Topic
Page 1 of 1

Back to top
MultiQuote
