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 (http://code.google.com/apis/chart/) 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 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

