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 22:01

The gchartrb gem is no longer maintained, it seems. The author points to these gems:

查看更多
疯言疯语
3楼-- · 2019-01-20 22:01

ChartDirector. Ugly API, but good, server-side image results. Self contained binary.

查看更多
干净又极端
4楼-- · 2019-01-20 22:02

If you don't need images, and can settle on requiring JavaScript, you could try a client-side solution like the jQuery plugin flot.

查看更多
再贱就再见
5楼-- · 2019-01-20 22:04

Morris.js is nice and open source. I would like to choose it comparing to highcharts. There is a new great video tutorial from Railscasts

查看更多
趁早两清
6楼-- · 2019-01-20 22:05

I am a fan of Gruff Graphs, but Google Charts is also good if you don't mind relying on an external server.

查看更多
淡お忘
7楼-- · 2019-01-20 22:05

The new Google Visualization appears to produce charts that are of more varied type, better looking and interactive than Google Graphs.

http://code.google.com/apis/visualization/

查看更多
登录 后发表回答