Ruby on Rails: What Reporting And/Or Charting Tools Are Available

Ruby on Rails: What Reporting and/or Charting Tools Are Available?

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

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.

Is there any reporting tool or a gem in Ruby on Rails

Have a look the question I asked another day: is there any Ruby or Rails reporting tools based on customizable templates?

Thin Reports and ODF report are very good. If you need to compare more reporting gems try The Ruby Box: reporting section. There are few other good reporting tools as well.

here is my summary about thin reports and ODF report:

Thin Reports: It is really good. You download a template editor then you define your own report template then by combine the thinreports gems you can get SVG or PDF report out of your application.

ODF Report: It uses ODF file as template which can be edit by OpenOffice and MS Word 2010. Then You get your report out.

is there any Ruby or Rails reporting tools based on customizable templates?

PeterPeng.

The following is message by the machine translation, so I'm sorry if you may be unable to understand...

I am developer of ThinReports.

In the newest ThinReports, it is possible to embed Graf as a picture.
The following is a sample using GoogleChart API.

ThinReports Example: Embed a graph using the GoogleChartAPI

In addition, using such images to create a Gruff, can be embedded as follows:

page.item(:image_block).src('/path/to/any.png')
page.item(:image_block).src(<Image Data>)

I hope helpful.

ActiveRecord charting tool

I found what I was looking for in the admin_data tool. It's a similar tool to ActiveAdmin, RailsAdmin, etc, but I discovered that when you're browsing a record, you also get an Analytics option. Example:

example chart from test server

Charts library for Ruby

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.

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.

What is your preferred way to produce charts in a Ruby on Rails web application?

Google Charts is an excellent choice if you don't want to use Flash. It's pretty easy to use on its own, but for Rails, it's even easier with the gchartrb gem. An example:

GoogleChart::PieChart.new('320x200', "Things I Like To Eat", false) do |pc| 
pc.data "Broccoli", 30
pc.data "Pizza", 20
pc.data "PB&J", 40
pc.data "Turnips", 10
puts pc.to_url
end


Related Topics



Leave a reply



Submit