Experiment 7 - Data Visualization
Imitate
- I didn't really understand how to do the assignment so I took an example from section. I also did not want to create a CSV file on my own and do not understand how to use an API.
- The example I took from is a rotating map of the earth with where earthquakes took place.
Integrate
- First I made the earth rotatable using the mouse position
- I wanted to add another picture on top of the earth, but then I felt like it detracted from the idea of seeing earthquakes on the earth.
- I wanted to try to take a dad joke API and take the letters from the joke it returned but I could not do it. I only found code to print it out but not to take the result and use it
Innovate
- I figured that instead of rotating the earth, you could just see the earthquakes on a flat image. My goal was to show the earthquakes using colors to show the intensity.
- I managed to get the image of the earth after a lot of attempts at changing the images position
- Then I realized I did not know how to scale the longitude and latitude with the image size, so I had to go back on my decision and use the 3D sphere.
- I changed the search from just 4.5 magnitude to all earthquakes from 30 days, but when it didn't load, I switched to 7 days.
- I got the boxes to change colors based on how high the magnitude was
- I added 1 to the magnitude so that the boxes were not too small, but it created this one REALLY large box, but it was already larger before the change. Later, I changed it to 0.5
- I made each click change which table to draw from. It goes all hour, all day, then all week. So now when you click you can see how much it changed in a week.
- I also made each click change the background color to go darker and show text to display how far it is showing. I also made it so that any key pressed would zoom in until the zoom was too much then it would reset.
Reflection
I did everything on my own again. This assignment was the hardest because I did not know what to do. I had never worked with APIs or CSV files and thought that we had to make our own. My only idea before using the earth was to take every letter from something and put it on a graph. The final result is pretty cool and looks official.