We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I have made myself a simple graph bar.. But i cant se the values of the graph. What do i need to do? My code:
float[] data;
void setup() {
size(500, 300);
String[] grader=loadStrings("grader.csv");
data=float(split(grader[0], ","));
}
void draw() {
background(255);
scale(1.2, 2.1);
stroke(0);
for (int i=0; i< data.length; i++) {
fill(data[i], 100, 100);
rect(i*35, 75, 25, data[i]);
}
noLoop();
}
Answers
Can't you use text()? >-)