5

http://googlecharts.rubyforge.org/

I installed it with: sudo gem install googlecharts

It installed fine, but whenever I try to use it I get: NameError: uninitialized constant Gchart

Here is the code I am running:

$ irb
>> require 'gchart'
=> true
>> Gchart.line(:data => [0, 40, 10, 70, 20])
NameError: uninitialized constant Gchart
    from (irb):2
kale
  • 1,161
  • 1
  • 9
  • 16

1 Answers1

3

Kale, I had this problem too. There's another gem called gchart which conflicts with googlecharts as they both use the name 'gchart' in Ruby. You need to uninstall gchart: gem uninstall gchart and potentially reinstall googlecharts.

Colonel Panic
  • 132,665
  • 89
  • 401
  • 465