I needed to generate reports for my application for which i tried my hand with Gruff graphs.
The Gruff Graphing Library is a project to make beautiful graphs with Ruby. Can be used alone or with Ruby on Rails.
An example is given below
Author
Geoffrey Grosenbach boss [at] topfunky [dot] com
Download
Install easily with Ruby Gems (RMagick required):
sudo gem install gruff
Or, use the Rails plugin, which includes a generator for making a Gruff controller:
# Install the plugin
./script/plugin install http://topfunky.net/svn/plugins/gruff
# Make a ReportsController and functional test
./script/generate gruff Reports
Also see the tests for examples of how to make a graph.
0 comments:
Post a Comment