FusionCharts Forum: Styles and XML builder - FusionCharts Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Styles and XML builder How to add styles when building the xml file

#1 User is offline   mole1066 

  • Forum Newbie
  • Group: Members
  • Posts: 5
  • Joined: 21-February 09

Posted 27 February 2009 - 03:47 AM

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
Michael
0

Other Replies To This Topic

#2 User is offline   srividya_sharma 

  • Supreme Being
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 943
  • Joined: 01-October 07

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
0

Other Replies To This Topic

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic