Ruby on rails RubyonRails上免费的Fusion图表
嗨,我正在使用融合图表免费铁路2.3.5 我试图模拟文档中提供的单_数组示例,但它没有显示图形,而是显示以下消息Ruby on rails RubyonRails上免费的Fusion图表,ruby-on-rails,charts,graph,fusioncharts,Ruby On Rails,Charts,Graph,Fusioncharts,嗨,我正在使用融合图表免费铁路2.3.5 我试图模拟文档中提供的单_数组示例,但它没有显示图形,而是显示以下消息 使用的方法是setDataXML #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 i
使用的方法是setDataXML
#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
以前有人看到过此消息>?我正在使用Firefox和flash player>9“使用的方法是setDataXML。XML是”是来自FusionCharts RoR的日志消息。
在此之后,它应该打印xml。
看起来您的xml不正确。请从生成器文件中删除注释,并查看其是否有效
请参阅发布在的示例应用程序“使用的方法是setDataXML。XML是”是来自FusionCharts RoR的日志消息。
在此之后,它应该打印xml。
看起来您的xml不正确。请从生成器文件中删除注释,并查看其是否有效
请参阅张贴在