Using google charts api with rails (googlechart gem)
I opted to use the googlechart gem (Google Charts) because the website was nicely designed and had numerous examples. It also seemed to currently have the most development around it. On github it had the most recent commit. This guy also decided on the googlecharts gem.
gem sources -a http://gems.github.com/ sudo gem install googlecharts
Then add the following to the end of your environment.rb file (for some reason, if you put config.gem ‘gchart’ in the new rails 2.0 fashion it does not work.
require 'gchart'
Then put some code in your view and clean up however you want or need.
<%= Gchart.line(:data => [0, 40, 10, 70, 20]) %>

Robert Wahler | July 31, 2008
This worked for me…
config.gem “googlecharts”, :version => ‘1.3.4′, :lib => ‘gchart’, :source => ‘http://gems.github.com/’
scott | July 31, 2008
Thank you very much Robert. I appreciate that. That did the trick.
ivan | November 28, 2008
Great gem. We use it too.