graph implementation

i am new in rails.. pls provide me some code how i show a simple chart/graph in web...pls provide some code..and the requirement how i install required gems..very urgent..

Subhadip Chakraborty wrote:

  i am new in rails.. pls provide me some code how i show a simple chart/graph in web...pls provide some code..and the requirement how i install required gems..very urgent..

I found the info I use with a simple Google for 'rails graphs'

One graphing method is to use Gruff:

Gruff info: http://nubyonrails.com/pages/gruff

and Gruff with Rails: http://nubyonrails.com/articles/2005/11/19/gruff-with-rails-typo-rewrite

I would recommend the Google charts API.

ot you can use fusioncharts free edition for flash graphs backed by xml. Easy to generate using rails .builder views

Or you can use Ziya that produces very fine flash graphics.

If you're doing this for an intranet wherer everyone uses safari or firefox, you could generate your graphs using html <canvas> tag (supported for some webkit browsers but not on IE).

It may not be the simplest solution, but I'll put on the table so people can get curious and learn about it.