From: "Dan Webb [dbw]" Date: 2009-03-11T18:48:13+09:00 Subject: Re: FasterCSV, Gruff and Large Data Import However if I feed the fastercsv data into an array then into gruff it _should_ work, as feeding a whole array that I've written out by hand into gruff works. If you see my logic here, it should work, no? Dan -----Original Message----- From: James Coglan [mailto:jcoglan@googlemail.com] Sent: 11 March 2009 09:32 To: ruby-talk ML Subject: Re: FasterCSV, Gruff and Large Data Import > a = [1,2,3,4,5] > g.data("X", a) > > it works absolutely fine. However if I've put the same data into a csv > file, then read it in using either: > > a = fastercsv.read("r.csv") > > or > > FasterCSV.foreach("r.csv") do |row| > a << row > end Looks like you're feeding the whole CSV table into Gruff all at once. Try something like this: idx = 1 FasterCSV.foreach("r.csv") do |row| g.data("Series #{idx}", row) idx += 1 end -- James Coglan http://github.com/jcoglan