7 Days of Source Day #2: NYTimes 365/360

NYTimes: 365/360 - 2009 (in color)

Project: NYTimes 365/360
Date: February, 2009
Language: Processing
Key Concepts: Data Visualization, NYTimes Article Search API, HashMaps & ArrayLists

Overview:

Many have you have already seen the series of visualizations that I created early in the year using the newly-released New York Times APIs. The most complex of these were in the 365/360 series in which I tried to distill an entire year of news stories into a single graphic. The resulting visualizations (2009 is picture above) capture the complex relationships – and somewhat tangled mess – that is a year in the news.

This release is a single sketch. I’ll be releasing the Article Search API Processing code as a library later in the week, but I wanted to show this project as it sits, with all of the code intact. The output from this sketch is a set of .PDFs which are suitable for print. Someday I’d like to show the entire series of these as a set of 6′ x 6′ prints – of course, someday I’d also like a solid-gold skateboard and a castle made of cheese.

That said, really nice, archival quality prints from this project (and the one I’ll be releasing tomorrow) are for sale in my Etsy shop. I realize that you’ll all be able to make your own prints now (and you are certainly welcome to do so) – but if you really enjoy the work and want to have a signed print to hang on your wall, you know who to talk to.

Getting Started:

Put the folder ‘NYT_365_360′ into your Processing sketch folder. Open Processing and open the sketch from the File > Sketchbook menu. You’ll find detailed instructions in the header of the main tab (the NYT_365_360.pde file).

Thanks:

Most of the credit for this sketch goes to the clever kids at the NYT who made the amazing Article Search API. This is the gold standard of APIs, and really is a dream to use. As you’ll see if you dig into the code, each of these complicated graphics is made with just 21 calls to the API. I can’t imagine the amount of blood, sweat, and tears that would go into making a graphic like this the old-fashioned way.

Speaking of gold standards, Robert Hodgin got me pointed to ArrayLists in the first place, and has been helpful many times over the last few years as I’ve tried to solve a series of ridiculously simple problems in Processing. Thanks, Robert!

Download: NYT365.zip (140k)


CC-GNU GPL

This software is licensed under the CC-GNU GPL version 2.0 or later.

Share:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Reddit
  • StumbleUpon
  • Tumblr
Bookmark the permalink. Follow any comments here with the RSS feed for this post. Post a comment or leave a trackback: Trackback URL.

This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.

10 Comments

  1. clay
    Posted October 12, 2009 at 1:25 pm | Permalink

    I think you forgot to add the link to the source code! Thanks for posting this! I'm trying to learn to program and seeing code really helps.

  2. Posted October 12, 2009 at 4:51 pm | Permalink

    Fixed!

  3. thomas
    Posted October 12, 2009 at 1:33 pm | Permalink

    Thank you for great blog, it´s a great help!

    The link works fine, but the folder behind it is empty.

  4. Posted October 12, 2009 at 6:35 pm | Permalink

    Really? Works fine for me – try it again. If it doesn't work, send me an e-mail and I'll fire you the .ZIP file.

    -Jer

  5. Posted October 12, 2009 at 4:50 pm | Permalink

    Are you a professional journalist? You write very well.

  6. thomas
    Posted October 12, 2009 at 9:04 pm | Permalink

    Got it working! It was some strange Windows based problem with the zip-file.

    Sorry that I bothered you.

  7. jake
    Posted October 14, 2009 at 2:44 pm | Permalink

    I think I am having the same problem as Thomas with the zip file. It may or may not be due to the colon placed in the file name, which I think is generally not allowed in Windows. The unzipping utilities will not process anything with an invalid file name – Thomas how did you get around this?

  8. Posted October 14, 2009 at 7:58 pm | Permalink

    Hi,

    I've rebuilt the .ZIP file – hopefully it will work better, now!

    -Jer

  9. thomas
    Posted October 16, 2009 at 5:59 am | Permalink

    jake: I unzipped the file with 7-zip.

  10. yunhancai
    Posted January 20, 2010 at 11:53 pm | Permalink

    Hi, sorry to bother you, i downloaded your files, but when i open the patch, an error accord

    in the;

    String JSONStr = join(loadStrings(url), "");

    so i entered:

    String JSONStr = join(loadStrings(url), "http://query.nytimes.com/search/sitesearch?query=jobs&less=multimedia&more=date_all");

    but it still says:

    NullPointerException

    can you please help?

3 Trackbacks

  1. By NYT 2009 « Run, Motherfucker, run on October 14, 2009 at 10:46 am

    [...] to distill an entire year of news stories into a single graphic. The resulting visualizations (2009 is picture above) capture the complex relationships – and somewhat tangled mess – that is a year in the [...]

  2. By Code & form » Jer Thorp’s 7 Days of Code on October 14, 2009 at 5:27 pm

    [...] Jer Thorp: NY Times visualization [...]

  3. [...] her path to use Processing to visualise the agencies and functions in a spectacular array based on NYTimes 365/360 by Jer Thorp – again, click to download the full [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*