var table; var yearsdata = new Array(); var employeddata = new Array(); var maxlim,minlim; var maxyr,minyr; function preload() { //my table is comma separated value "csv" table = loadTable('graduates.csv', 'csv', 'header'); } function setup() { //count the columns createCanvas(2000,2000); var years = table.getColumn('Year'); var majors = table.getColumn('Major'); var employed = table.getColumn('Employed'); var j =0; for(var i =0; i