var table; function preload() { //my table is comma separated value "csv" //and has a header specifying the columns labels table = loadTable('cars.csv', 'csv', 'header'); } function setup() { //count the columns createCanvas(800,800); print(table.getRowCount() + ' total rows in table'); print(table.getColumnCount() + ' total columns in table'); } function draw(){ background(255); for (var x = 0; x < table.getRowCount(); x++){ ellipse(100+(x*5), 0.05*table.getString(x,5), 0.95*table.getString(x,2), 0.95*table.getString(x,2)); } line(10, 10, 10, 800); line(10, 799, 800, 799); }