From: "Dan Webb [dbw]" Date: 2009-03-10T23:57:16+09:00 Subject: Re: FasterCSV, Gruff and Large Data Import Not really, well I could but I'm trying to compare it with doing it in a similar program such as GNU Plot, plus there are sometimes irregularities in the data which I'd like to show if possible. 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. Dan -----Original Message----- From: James Gray [mailto:james@grayproductions.net] Sent: 10 March 2009 14:37 To: ruby-talk ML Subject: Re: FasterCSV, Gruff and Large Data Import On Mar 10, 2009, at 9:03 AM, Dan Webb [dbw] wrote: > I've got a CSV file which contains 18k items that I need to import to > graph. I'm using FasterCSV and Gruff to import and graph the data. > > > > Obviously I'm going about this wrong as it's overloading the Array > class. Is there another way around this? > > http://pastie.org/412741 Well, I think you probably need to trim the data down a bit. Could you maybe build up some averages over time periods and feed just those averages to Gruff? James Edward Gray II