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(720, 400); print("Hello world!"); print(table.getRowCount() + ' total rows in table'); print(table.getColumnCount() + ' total columns in table'); //cycle through the table for (var r = 0; r < table.getRowCount(); r++){ for (var c = 0; c < table.getColumnCount(); c++) { // print(table.getString(r, c)); } } } function draw(){ background(255); fill(255, 115, 25); for (var i = table.getRowCount - 1; i >= 0; i--) { // ellipse(i, 100, 20, 20); } ellipse(110, 100, 20, 20); }