From: James Coglan Date: 2009-03-11T18:32:02+09:00 Subject: Re: FasterCSV, Gruff and Large Data Import --000e0cd297f04510a40464d49154 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit > 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 --000e0cd297f04510a40464d49154--