How to show values

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

Sign In or Register to comment.