我需要在使用Ruby on Rails构建的web应用程序上显示一些基于用户输入的图表/图形。有没有什么图表库可以和ROR一起用来显示简单的条形图、折线图和饼图?
发布于 2009-11-21 23:54:31
发布于 2010-08-21 02:17:42
用闪光灯和imagemagick打倒。
试试带有ruby的lazy high charts插件的Highcharts:github.com/michelson/lazy_high_charts。
发布于 2009-11-22 00:00:29
或者通过谷歌云化图表--这是其中的精华:https://github.com/mattetti/googlecharts
示例:
# console
$ ruby script/plugin install git://github.com/mattetti/googlecharts.git
# view
<img src="<%=GoogleChart.pie(['1997',10],['1998',70],['1999',20]).to_url%>">
https://stackoverflow.com/questions/1775836
复制相似问题