Ruby on Rails: What Reporting and/or Charting Tool

2019-03-08 06:24发布

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.

8条回答
Summer. ? 凉城
2楼-- · 2019-03-08 07:01

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.

查看更多
smile是对你的礼貌
3楼-- · 2019-03-08 07:03

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.

查看更多
登录 后发表回答