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
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
This has not so much to do with Rails, but at least I think you can use them for free.
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