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() { createCanvas(800, 800); //count the columns 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); for(var x = 0; x < table.getRowCount(); x++){ ellipse(100+(x*5), 0.05 * table.getString(x, 5), 2 * table.getString(x, 2), 2 * table.getString(x, 2)); } textSize(32); text('word', 100, 300); line(10, 10, 10, 800); line(10, 799, 800, 799); }