Ruby图表库? [英] Ruby charting library?

查看:295
本文介绍了Ruby图表库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要根据我在使用Ruby on Rails构建的web应用程序上的用户输入来显示一些图表/图表。有没有任何图表库,我可以用ROR来显示简单的条形,线和饼图?

解决方案

一个漂亮的宝石叫做



gruff

用于ruby中的图形。您需要神奇的 imagemagick rmagick library。由于后两者的安装并不是非常简单(但并不困难),因此有一个安装常见问题



看起来像这样:



此库的更多示例: http://geoffreygrosenbach.com/projects/show/5


I need to display some charts/graphs based upon user inputs on my web aplication built using Ruby on Rails. Are there any charting libraries out there that I could use with ROR for displaying simple bar, line and pie graphs?

解决方案

There is a nice gem called

gruff

for graphs in ruby. You'll need the fabulous imagemagick and rmagick library. Since installation of the latter two is not really trivial (but not difficult, either), there's a installation FAQ for that.

Looks something like this:

More examples of this library: http://geoffreygrosenbach.com/projects/show/5

这篇关于Ruby图表库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆