Create Graphical charts using rails

Hi
Could anybody please point me to some good links to draw Graphical
charts using RubyOnRails and also suggest which is the best one?

Thanks in advance
Sijo

2008/9/19 Sijo Kg [email protected]:

Hi
Could anybody please point me to some good links to draw Graphical
charts using RubyOnRails and also suggest which is the best one?

This has not so much to do with Rails, but at least I think you can
use them for free.

Create any chart for any business need. Explore our gallery of Bar, Column, Line, Area, Gantt, Pareto, Finance, Performance and 150+ pre-made charts.


Rodrigo F.
http://www.thecodekeeper.net/

Hi
Thanks for your reply
Sijo

Sijo Kg wrote:

Hi
Could anybody please point me to some good links to draw Graphical
charts using RubyOnRails and also suggest which is the best one?

Thanks in advance
Sijo

You could use Google charts (Charts  |  Google for Developers)

Use the gchartrb gem, then you can write helpers like this:

  GoogleChart::BarChart.new('600x200', nil, :vertical, false) do 

|bc|

    bc.data nil, result, '623d2a'
    bc.axis :x, :labels => labels, :color => '000000'
    bc.axis :y, :labels => [0,(result.max/2).to_i,result.max], 

:color => ‘000000’
bc.width_spacing_options :bar_width => 25, :bar_spacing => 30,
:group_spacing => 40

    @result = image_tag(bc.to_url)
  end