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 posx && mouseY > posy && mouseX < posx+20 && mouseY < posy + len) { fill(50); text(barval, mouseX+20, mouseY); } } line(100,10,100,750); line(100,750,1000,750); //push(); //rotate(PI / 2.0); fill(50); textSize(8); text("Employed CS student",3,360); text("Year",500,780); //pop(); }