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.
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.
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.
For reporting, you have
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.
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 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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With