Hello! Writing some code based here, and for some reason it is generating an outlined coral colored circle. I believe this is coming from the line graph I drew (in the first begin shape) but not sure where in the code I went wrong. If it’s not blatantly obvious, I can attach data as well. Thanks in advance!!
PS this may be messy as I am just a beginner!
Table myData = loadTable("screendata-small.csv", "header");
int numEntries = myData.getRowCount();
float screentime;
float day;
float pickups;
float notif;
size(800, 800);
background(#272932);
beginShape();
for (int i = 0; i < numEntries; i++) {
screentime = myData.getRow(i).getFloat("Screen Time Decimal");
println("Screen Time:", screentime);
day = myData.getRow(i).getFloat("Day #");
println("Day", day);
day = map(day, 0, 8, 0, width);
screentime = map(screentime, 0, 3, height, 0);
float xCoord = day;
float yCoord = screentime;
vertex(xCoord, yCoord);
noFill();
stroke(#F05D5E);
}
endShape();
beginShape();
for (int i = 0; i < numEntries; i++) {
pickups = myData.getRow(i).getFloat("Pickups");
day = myData.getRow(i).getFloat("Day #");
day = map(day, 0, 8, 0, width);
pickups = map(pickups, 0, 80, (height-300), 0);
float pickupsradius = myData.getRow(i).getFloat("Pickups");
float xCoord = day;
float yCoord = pickups;
ellipse(xCoord, yCoord, pickupsradius, pickupsradius);
fill(#6564DB,80);
stroke(#6564DB);
}
endShape();
beginShape();
for (int i = 0; i < numEntries; i++) {
notif = myData.getRow(i).getFloat("Notifications");
day = myData.getRow(i).getFloat("Day #");
day = map(day, 0, 8, 0, width);
notif = map(notif, 30, 400, (height-300), 0);
float notifradius = myData.getRow(i).getFloat("Notifications");
float xCoord = day;
float yCoord = notif;
ellipse(xCoord, yCoord, notifradius, notifradius);
fill(#7D387D,80);
stroke(#7D387D);
}
endShape();