Fusion charts for free on Ruby on Rails
Hi I'm using Fusion charts for free with Rail 2.3.5
I tried to simulate the single_array example provided in the documentation, but instead of a graph, it shows me the following message
The method used is setDataXML. The XML
#Creates xml with values for sales data of products #along with their names.
#The values required for building the xml is obtained as parameter arr_data
#It expects an array in which each element is
#itself an array with first element as label and second element as value
xml = Builder::XmlMarkup.new xml.graph(:caption=>'Sales by Product', :numberPrefix=>'$', :formatNumberScale=>'0',:decimalPrecision=>'0') do
for item in arr_data xml.set(:name=>item[0], :value=>item[1],:color=>''+get_FC_color)
end
end
Has anyone seen this message before>? I am using Firefox with Flash Player> 9
+2
a source to share
1 answer
"The method used is setDataXML. The XML is the log message from FusionCharts RoR. After that it should print the xml. Looks like your xml is not correct. Remove the comments from the builder file and see if it works."
See example app published on FusionCharts in RoR 2.3.5
0
a source to share