Ruby on Rails:有什么报告和/或图表工具可用? [英] Ruby on Rails: What Reporting and/or Charting Tools Are Available?
问题描述
我刚刚开始使用Ruby / Rails,我想知道Rails开发者在Rails网站上提供报表和/或图表的用途。在ASP.NET我使用DevExpress的工具,但我不知道足够Rails生态系统知道什么是可用的。
I'm just starting out with Ruby/Rails and am wondering what Rails developers use to provide reports and/or charts on Rails sites. In ASP.NET I use the tools from DevExpress but I don't know enough about the Rails ecosystem to know what is available. Any insight would be appreciated.
推荐答案
我会说大多数人写自己的代码来从他们的数据运行报告它将主要是专门针对他们。然而,有很多图表的东西,很容易插入到一个rails应用程序。
Well I'd say that most people write their own code to run reports from their data as it will mostly be specific to them. There are however a number of charting things that plug into a rails app quite easily.
- Open Flash Chart
- Scruffy
还有一本名为Practical
There is also an apress book called Practical Reporting with Ruby and Rails which might be worth a look.
祝你好运。
编辑:
如果你想要对数据进行分页,那么will_paginate是Rails开发者使用的标准gem / plugin,它非常容易使用。对于导出到其他格式有几个选项。对于PDF有Prawn,PDF :: Writer或HTMLDOC,王子是优秀的,但不是免费的,但我认为有人将它移植到一个开源库(如果我记得正确),有几个库,可以帮助你轻松导出到CSV文件。
If you want to paginate data then will_paginate is the standard gem/plugin used by Rails developers, it's great and easy to use. For export to other formats there are several options. For PDFs there is Prawn, PDF::Writer or HTMLDOC, Prince is excellent but not free, but I think there is someone porting it to an open source library (if I remember right), and there are several libraries that can help you easily export to CSV files as well.
这篇关于Ruby on Rails:有什么报告和/或图表工具可用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!