JSON - p5.js Sketch #8
- anmonaco
- Dec 9, 2018
- 1 min read
In class we learned the basics of creating our own JSON file. Our assignment was then to use and existing CSV file, convert it to a JSON file, and then change the CSS formatting to make it look nice. I used data from a prison. The numbers I used represent the prison district number, the number of people, the number of males, the percent male, the number of female, and the percent female. After I converted to JSON, the main challenge I had was figuring out how to make the data in the correct formal because it copied in a different format then what would work with the code. After I changed the formatting in the JSON file, I just had to change the colors and sizes of the numbers in CSS.
Here is the link to my code: https://editor.p5js.org/anna10128/sketches/BkeZtBVkV

Comments