//// VARIABLES ///INTERGERS FOR COLUMNS ON CHART //int c=0; ///int x=100 ////ARRAYS String columns[]= { "NAMES", "AGE", "WEIGHT", "HEIGHT", "BMI"}; String names[]= { "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k"}; void setup () { smooth (); size (800, 600); } void draw(){ ////NEXT FRAME showchart (); screentitle (); } void screentitle(){ ////TITLES fill (0); textSize (16); text ("Edgar M. Lopez", 650, 20); text ("Project 8" , 650, 35); textSize (30); text ( "CHART", 355, 90); } void showchart(){ ////DRAWING CHART fill (255); stroke(0); strokeWeight(4); rect (100, 100, 600, 420); ////H LINES strokeWeight(2); stroke(0); int n=0; for (int y= 130; y<500; y= y+19){ line(100, y, 700, y); fill(0); textSize(15); text(""+names[n], 130, y= y+20); n= n+1; ///V LINE int c=0; for (int x= 100; x<700; x= x+125){ line(x, 100, x, 520); fill(0); textSize(15); text(""+columns[c], x+20, 120); c= c+1; } } }