Ruby图表库 [英] Charts library for Ruby

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

问题描述

我在Ruby on Rails应用程序中寻找一个非常具体的生成图表的工具。我已经做了一个研究,找不到适合我的解决方案。

I am looking for a quite specific tool for generating charts, within Ruby on Rails application. I have done a research and couldn't find a solution that suits me.

也许你碰到了,可以指向它与一个链接? :)

Maybe you've bumped upon it and could just point me to it with a link? :)

我对一个解决方案的要求是:

My requirements for a solution are:


  • 基本图表类型
    像Pie,Bar,Stacked Bar,Line。

  • 它必须有基本配置
    a图表如图例,轴
    描述。


  • 是一个Ruby库,会很好,
    ,但它不是强制的

  • 不是Gruff绘图库,I
    我正在寻找更多的b $ b日期,更少问题。

  • it has to feature basic chart types like Pie, Bar, Stacked Bar, Line.
  • it has to have basic configuration of a chart like legend, axis description.
  • it has to be able to generate and save chart into image file without actually rendering it in a browser
  • being a Ruby library would be nice, but it is not obligatory
  • not being Gruff Graphing Library, I am looking for something more up to date, with less issues.

如果您知道某事,请发布一个链接 - 几秒钟。

If you are aware about something, please post a link - it'll take you just a few seconds.

推荐答案

我制作了一些有用的图表与 Google Chart API 。有几个宝石: googlecharts gchartrb 。我没有使用它们,但他们看起来像一个良好的第一次切。

I've made a number of useful charts with the Google Chart API. There are a few gems: googlecharts, gchartrb. I haven't used them but they look like a good first cut.

至于不显示,您只能拨打电话并保存结果。不需要渲染,只需进行调用,获取URL和获取文件。

As to not displaying it you can just make the call and save the result. No need to render, just make the call, get the URL, and fetch the file.

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

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