Visualizing campaign donations in SpatialKey

On October 14, the New York Times released their Campaign Finance API, a simple interface to the Federal Election Commission’s candidate fund-raising data. Data are available for the entire country, for all primary candidates, from the beginning of the 2008 primary campaign up until the end of August. Though summary data are available, the API also allows requests for individual donors by zip code, and includes name, address, amount, and date for all donations.

With a simple script, we were able to string together requests for multiple zip codes and parse the resultant XML into a CSV file that could be loaded and geocoded with the SpatialKey Data Importer (all while staying under the Times’ generous 5000 requests/day limit). Doing so yielded complete datasets for a number of major cities and battleground states; here we present campaign donations data from the Democratic strongholds of Chicago and Denver.

Chicago donations to Obama and McCain, August 2008

Launch this visualization

This dataset includes all available donations from Chicago received by either major presidential candidate in August, the most recent month for which individual-level data are available. The over 4000 donation records provide a unique view into political spending in Obama’s home base during a month in which the candidates were nearly even in the polls.

With our new and in-development Data Exploration template, you can filter the donation records by any attribute, allowing you to exclude individual donors or candidates, or select a range of dates or donation amounts to display. Filters are immediately applied to the visualization, and many trends in the data are revealed only after such filtering has been applied. For example, displaying only donations to John McCain reveals a much different geographic trend than the unfiltered dataset, as nearly all donations from Obama’s neighborhood of Hyde Park are erased, leaving hotspots only in the downtown, Gold Coast, and far northwest neighborhoods.

Denver donations to Obama and McCain, Summer 2008

Launch this visualization

Denver provides another compelling case study of campaign fundraising, given its position as the capital of a Western battleground state, and the host of the Democratic National Convention in late August. Both candidates also visited the city multiple times throughout the summer months. The temporal trends and geographic clustering in this data can be explored via our Data Exploration template. The scented filtering widgets allow you to visualize the distribution of attributes while filtering them down to reveal previously hidden geographic trends on the map. For example, the screenshot above shows only donations over $500 to both candidates. This cuts out nearly half of Obama’s receipts, though only about one-third of McCain’s, and produces a markedly different geographic distribution than the unfiltered receipts.

Finally, though the above has concentrated on trends and aggregated visualizations, the Data Exploration template also allows you to drill down into the data to pull out individual records. After viewing the overall trend for a city or neighborhood, click anywhere on the map from which donations originated, and you can page through a list of individual donations in the vicinity, as shown in the screenshot above.

One thought on “Visualizing campaign donations in SpatialKey

  1. You know what I’d love to see…figure you guys are probably the only ones that could do it.

    There was a bill that was proposed that would close down any gun shop within 5 miles of a school or park (be it city, state or national I believe).

    Critics claimed that it would force the closure of almost every gun shop in America.

    I’ve wondered if this is true. I imagine you could get data that would list all parks and all schools for a given state. And I am sure you can get the data of all FFL licensees.

    I’d be very curious to know if the criticism is true or not.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>