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
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.
–
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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs