Originally I pitched drawing the average color of a room in the Cooper Hewitt museum over time for my midterm project. Here's my pseudocode to collect the data:
- Get the list of exhibits - For each exhibit - Get the room it was in - Get the dates it ran from - Get the list of objects in it - For each object - Get the color palette — extract the list of colors from the color palette
The Cooper Hewitt API allows you to try some of the calls within the site itself, and upon further inspection I realized a couple of things
- You can't get the room an exhibit was in, but you can get the objects that have been in a room. This means I won't be able to show the data change over time.
- The API has a call to get the color palette of an object, but some of the objects are not returning a color. Not a problem in the grand scheme of things, but it skews the average.
- There's no way to correlate the data to the publicly available Cooper Hewitt map. The API returns a list of the rooms in the museum, but they're designated by room number.
This means that the midterm project I pitched is currently not possible with what the API provides since the core things I need to do - figure out the color set of all objects within a room and draw it on top of the map - aren't part of the data set. I'm going to need another plan.
For this week's assignment, I'm following the Bubble Chart tutorial to see if there are any duplicate streets in Chicago (which there are a lot of them, but luckily they repeat only twice).
It took some time to muck around with, and I started over a lot - JSFiddle throws some strange errors and can't write to the console for some reason. The data set also strangely has a space in the Street column name, so my initial selector was returning undefined; once I figured that out (and remembered to change the URL to the Chicago streets CSV URL), it fell into place after that.