From: James Coglan Date: 2009-03-11T00:02:30+09:00 Subject: Re: FasterCSV, Gruff and Large Data Import --000e0cd246c6090acc0464c5112d Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit > On a second look the error I'm getting is a gruff related one. > > c:/ruby/lib/ruby/gems/1.8/gems/gruff-0.3.4/lib/gruff/base.rb:943:in > `larger_than > _max?': undefined method `>' for ["1\t8877"]:Array (NoMethodError) > from > c:/ruby/lib/ruby/gems/1.8/gems/gruff-0.3.4/lib/gruff/base.rb:453:in > `data' > from > c:/ruby/lib/ruby/gems/1.8/gems/fastercsv-1.4.0/lib/faster_csv.rb:15 > 70:in `each_with_index' > from > c:/ruby/lib/ruby/gems/1.8/gems/gruff-0.3.4/lib/gruff/base.rb:443:in > `each' > from > c:/ruby/lib/ruby/gems/1.8/gems/gruff-0.3.4/lib/gruff/base.rb:443:in > `each_with_index' > from > c:/ruby/lib/ruby/gems/1.8/gems/gruff-0.3.4/lib/gruff/base.rb:443:in > `data' > from main.rb:20 > > line 20's where the array gets pushed into the graph. Can you show us your code? Looks like your array of data may itself contain arrays -- have you tried flattening the array before giving it to Gruff? --000e0cd246c6090acc0464c5112d--