【问题标题】:Fusion charts free on Ruby on RailsRuby on Rails 上的免费融合图表
【发布时间】:2011-02-17 00:06:00
【问题描述】:

您好,我在 Rail 2.3.5 中免费使用 Fusion 图表

我试图模拟文档中提供的 single_array 示例,但它显示的不是图形,而是以下消息

使用的方法是setDataXML。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

之前有人看过这条消息>?我正在使用带有 Flash 播放器的 Firefox > 9

【问题讨论】:

    标签: ruby-on-rails charts graph fusioncharts


    【解决方案1】:

    “The method used is setDataXML.The XML is”是来自 FusionCharts RoR 的日志消息。 在此之后,它应该打印 xml。 看起来你的 xml 不正确。请从构建器文件中删除 cmets 并查看它是否有效。

    请查看FusionCharts in RoR 2.3.5发布的示例应用程序

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-06-26
      • 2010-12-23
      • 2022-11-10
      • 2014-04-29
      • 2018-03-15
      • 2013-12-20
      • 1970-01-01
      • 2013-12-13
      相关资源
      最近更新 更多