IMG_6316.JPG

itp

Week 7 ICM: Working with data

This week, I was inspired by the Library of Missing Datasets and by the ongoing attempts by the Trump administration to erase and delegitimize LGBT people in the USA. I wanted to work with data about LGBT folks, which is notoriously hard to find.

I found this csv on github, which gathered data about LGBT rights and oppression worldwide, and converted it to JSON format. Then I split it into three arrays for my infographic.

for (i = 0; i < datax.length; i++) {

if (datax[i].persecution == true) {

// console.log(datax[i].persecution);

countrPer.push(datax[i].country);

}

}

for (i = 0; i < datax.length; i++) {

if (datax[i].imprisonment == true) {

// console.log(datax[i].imprisonment);

countrIll.push(datax[i].country);

}

}

for (i = 0; i < datax.length; i++) {

if (datax[i].death == true) {

// console.log(datax[i].imprisonment);

countrDea.push(datax[i].country);

}

}

I was hoping to create buttons or hover for the infographic that, when you pressed them/hovered over each section, would display the country names in each array. However, I had trouble modifying the position of createP(arrayName), and so was unable to make it readable. My question for this week has to do with formatting the information in arrays when trying to display in on the p5 canvas.

Screen Shot 2018-10-23 at 11.24.39 PM.png
Screen Shot 2018-10-23 at 11.23.49 PM.png

You can see the code here.

ITP, ICMCaroline NeelComment