We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 9 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(8)
嗯,我想说的是,大多数人编写自己的代码来运行来自他们数据的报告,因为它主要是针对他们的。 然而,有许多图表工具可以很容易地插入 Rails 应用程序中。
还有一本名为 Practical Reporting with Ruby and Rails 的 apress 书可能值得一看。
祝你好运。
编辑:
如果你想对数据进行分页,那么 will_paginate 是 Rails 开发人员使用的标准 gem/插件,它很棒且易于使用。 要导出为其他格式,有多种选择。 对于 PDF,有 Prawn、PDF::Writer 或 HTMLDOC,Prince 很优秀,但不是免费的,但我认为有人将它移植到开源库(如果我没记错的话),并且有几个库可以轻松帮助您也可以导出为 CSV 文件。
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.
There is also an apress book called Practical Reporting with Ruby and Rails which might be worth a look.
Good luck.
EDIT:
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.
我发现 Gruff Graphs 非常易于使用,并且它生成的图表非常漂亮。 还有用于微小图表的迷你图。 如果您需要非常特定类型的生成图像,您可以查看 RMagick。
I found Gruff Graphs to be very easy to use and it produced nice-looking graphs. There is also Sparklines for tiny, tiny graphs. If it turns out you need very specific kinds of generated images, you can check out RMagick.
对于报告,您可以使用
服务
对于简单的预制报告,Ruport 应该没问题。 但如果您需要处理大量报告和大型数据集,请继续选择接下来三个之一。
笔记:
SQL Server Reporting Services 只能与 SQL Server 配合使用。 其他的与数据库无关。
For reporting, you have
Services
For simple pre-baked reports, Ruport should be fine. But if you need to deal with high volumes of reports and large dataset, go ahead and pick one of the next three.
Note:
SQL Server Reporting Services can only work with SQL Server. The others are DB-agnostic.
我之前用过Open Flash Chart 2,非常好用。
您只需创建一个键/值对数组并对其调用“.to_json”即可。
I used Open Flash Chart 2 before and it was very easy to use.
You just make an array of key/value pairs and call ".to_json" on it.
ruby gnuplot 不完全是一个图表工具..但我曾经制作过一些相当复杂的图表..并且如果您需要制作一些快速原型或希望制作不适合最终用户的图表,我认为您可能会喜欢它。
ruby gnuplot is not exactly a charting tool.. but I have used to make some pretty complicated graphs.. and think you might like it if you need to make some quick prototypes or wish to make charts that are not intended for end-users.
它不是特定于 Rails 的,但 Google Visualization API 非常酷。
Emprise 也有一些非常漂亮的图表。
It's not rails specific, but Google Visualization API is pretty cool.
Emprise also has some pretty nice looking graphs.
Ext Javascript 库刚刚发布了(从 v3.0 开始)一套新工具,只需使用 Javascript 编程即可生成 Adobe Flash 图表和图形! 它都是客户端,因此您可以将其与任何后端 Web 服务器(Rails、PHP、ASP.NET 等)一起使用。
请在此处查看示例:
ExtJS Flash 图表示例
它功能强大,看起来很棒。 好处是,由于它是 Javascript,因此您可以创建表单字段,填写后,使用用户刚刚键入的新数据,使用来自服务器的 JSON/XML 数据重新生成图表! 这非常漂亮。
The Ext Javascript library has just released (as of v3.0) a new set of tools to generate Adobe Flash charts and graphs, just by programming in Javascript! It is all client-side, so you can use it with any backend webserver (Rails, PHP, ASP.NET, etc.)
Check out examples here:
ExtJS Flash Charting Examples
It is powerful and looks great. The nice thing is that since it is Javascript, you can create form fields that, once filled out, regenerate the graph using JSON/XML data from the server using the new data that the user just typed! It's pretty nifty.
大家好,我一直在开发一个报告工具,一个 ruby gem。 如果您有某些功能,请查看并建议我。 我已经在我的 2 个项目中使用它了。
http://ashrafuzzaman.github.io/query_report/
Hi guys I have been working on a reporting tool, a ruby gem. Please have a look and suggest me if you have some features in mind. I am already using it in 2 of my projects.
http://ashrafuzzaman.github.io/query_report/