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

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

问题描述

我需要在使用 Ruby on Rails 构建的 Web 应用程序上根据用户输入显示一些图表/图形.是否有任何图表库可以与 ROR 一起使用以显示简单的条形图、折线图和饼图?

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

粗暴

用于 ruby​​ 中的图形.您将需要出色的 imagemagickrmagick 库.由于后两者的安装并不简单(但也不难),因此有一个 安装常见问题解答 为此.

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.

看起来像这样:

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

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

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