What is your preferred way to produce charts in a

2019-01-20 21:28发布

I'd like to add some pie, bar and scatter charts to my Ruby on Rails web application. I want want them to be atractive, easy to add and not introduce much overhead.

What charting solution would you recommend?
What are its drawbacks (requires Javascript, Flash, expensive, etc)?

30条回答
迷人小祖宗
2楼-- · 2019-01-20 21:55

I've used Fusion Charts extensively from within a Java web application, but it should work the same way from Rails since you're just embedding a Flash via HTML or JavaScript and passing it XML data. It's a slick package and their support has always been very responsive.

查看更多
劫难
3楼-- · 2019-01-20 21:55

Regarding amcharts, there's a "free" version with a very few restrictions that generates Flash charts including the 'chart by amCharts.com' mention.

And there's a nice plugin, ambling, that provides you with some helper methods to easily add charts to your views. Please note that amCharts.com reference documentation is still a must to tailor the chart to your requirements.

查看更多
虎瘦雄心在
4楼-- · 2019-01-20 21:56

GoogleCharts and Gruff charts are great, but sometimes they lack some features that I need for more scientific plotting. There is a gem for gnuplot which may be helpful for some of these situations.

http://rgplot.rubyforge.org/

查看更多
趁早两清
5楼-- · 2019-01-20 21:57

There's also Scruffy. I took a look at the code recently and it seemed easy to modify/extend. It produces svg and (by conversion) png.

查看更多
倾城 Initia
6楼-- · 2019-01-20 21:57

I personally prefer JavaScript-based charts over Flash. If that's ok, also check out High Charts. A Rails plugin is also available.

查看更多
相关推荐>>
7楼-- · 2019-01-20 21:59

gem 'chart' makes it easy to add ChartJS and NVD3 charts to rails.

查看更多
登录 后发表回答