<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link rel="hub" href="http://tumblr.superfeedr.com/" xmlns:atom="http://www.w3.org/2005/Atom"/><description>Notes and images from an ever-growing digital newsroom.Newsweek &amp; The Daily Beast
Contributors: Michael Keller, Brian Ries, Sam Schlinkert, Andrew Sprouse, &amp; Lynn Maharas</description><title>NewsBeast Labs</title><generator>Tumblr (3.0; @newsbeastlabs)</generator><link>http://newsbeastlabs.tumblr.com/</link><item><title>This week, we’re super excited that our project This Is...</title><description>&lt;img src="http://24.media.tumblr.com/7943952aabefd66e8e54950a029276e8/tumblr_mm6ilbvc7n1riqdl6o1_400.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;This week, we’re super excited that our project &lt;a href="http://www.thisisyourreponguns.com"&gt;This Is Your Rep On Guns&lt;/a&gt; was nominated for a &lt;a href="http://www.globaleditorsnetwork.org/dja/" target="_blank"&gt;Data Journalism Award&lt;/a&gt; in the Data-Driven Application category.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;As we &lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;a href="http://newsbeastlabs.tumblr.com/post/43013339844/after-the-newtown-shooting-in-december-we-had-a" target="_blank"&gt;wrote about&lt;/a&gt;&lt;span&gt; a &lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;a href="http://newsbeastlabs.tumblr.com/post/41373060897/update-feb-10-repsguntweets-has-been-changed-to" target="_blank"&gt;couple of times&lt;/a&gt;&lt;span&gt; on this blog, we have been tracking all 530+ representatives’ positions on gun control, updating it when news happens, and publishing their statements automatically via our Twitter robot @YourRepsOnGuns. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It’s been a very fun project and one we hope that has been informative. We’ve received a number of emails from readers tipping us off to local articles and they’ve sent in letters from their rep explaining their position on gun control. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If you want to help us be able to do more projects like this, there’s a People’s Choice component of the awards where you can vote for us. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If you like the project and want to give us your vote, you can &lt;/span&gt;&lt;a href="http://elink.thedailybeast.com/5075d89ec91c45a227066d3bzaa2.bi/UYGJiMJS6dkG6CSmB18ad" target="_blank"&gt;find us here&lt;/a&gt;&lt;span&gt;. We’re only 70 votes away from first place! (Sometimes the site asks you to also log in to Facebook, but nothing gets posted from your account, we’ve checked.)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks for the help these past few months!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Michael&lt;/span&gt;&lt;/p&gt;</description><link>http://newsbeastlabs.tumblr.com/post/49442886583</link><guid>http://newsbeastlabs.tumblr.com/post/49442886583</guid><pubDate>Thu, 02 May 2013 12:17:00 -0400</pubDate><category>gun control</category><category>digital journalism</category><category>dja13</category></item><item><title>Guest Post: Michael Keller from Newsbeast Labs</title><description>&lt;p&gt;We released our interactive map templates that use Leaflet.js and CartoDB for all to use. Michael wrote a post about them on the CartoDB blog, reblogged below. Feel free to &lt;a href="http://mhkeller.github.com/cartodb-templates"&gt;grab them from GitHub&lt;/a&gt; and use them:&lt;/p&gt;
&lt;p&gt;&lt;a class="tumblr_blog" href="http://blog.cartodb.com/post/47054808317/guest-post-michael-keller-from-newsbeast-labs"&gt;cartodb&lt;/a&gt;&lt;span&gt;:&lt;/span&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p class="p1"&gt;&lt;em&gt;As some of you may already know, Newsweek / The Daily Beast has been using CartoDB for some time now, and as such today’s blog post comes from Michael Keller of Newsbeast labs. We’d also like to take the opportunity thank Michael for his amazing contributions to the CartoDB community. Thanks!  &lt;/em&gt;&lt;/p&gt;
&lt;p class="p1"&gt;A number of recent stories at the Daily Beast have had &lt;a href="http://www.thedailybeast.com/articles/2013/01/22/interactive-map-america-s-abortion-clinics.html" target="_blank"&gt;&lt;span class="s1"&gt;some kind&lt;/span&gt;&lt;/a&gt; of &lt;a href="http://thedailybeast.thisisyourreponguns.com/#Pane=detail&amp;amp;rep_id=F000451" target="_blank"&gt;&lt;span class="s1"&gt;mapping component&lt;/span&gt;&lt;/a&gt;. We use them often to let people see how a national topic affects readers’ local areas.&lt;/p&gt;
&lt;p&gt;&lt;img alt="image" src="http://i.imgur.com/xgTnGL7.png" width="500px"/&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;a href="http://mhkeller.github.com/cartodb-templates/http://mhkeller.github.com/cartodb-templates/" target="_blank"&gt;&lt;a href="http://mhkeller.github.com/cartodb-templates/"&gt;http://mhkeller.github.com/cartodb-templates/&lt;/a&gt;&lt;/a&gt; I have been reusing code from former projects and so it was about time I standardized them into reusable templates with Leaflet.js. I released them on &lt;a href="http://mhkeller.github.com/cartodb-templates"&gt;&lt;span class="s1"&gt;Github&lt;/span&gt;&lt;/a&gt; this week. &lt;/p&gt;
&lt;p class="p1"&gt;I made three categories: basic map with hover states, hover states + hover infowindow, and all of that with templated infowindows using Underscore.js.&lt;/p&gt;
&lt;p class="p1"&gt;In each of these categories you’ll see a template for a point map, a polygon map, and a map with both points and polygons.&lt;/p&gt;
&lt;p class="p2"&gt;&lt;span&gt;Some features:&lt;/span&gt;&lt;/p&gt;
&lt;p class="p3"&gt;&lt;span class="s2"&gt;• &lt;/span&gt;On point + polygon templates, the polygon hover state turns off when you hover over a point.&lt;/p&gt;
&lt;p class="p3"&gt;&lt;span class="s2"&gt;• &lt;/span&gt;Hover windows follow the mouse and respect the boundaries of the map-canvas. I find it most useful to have hover windows close to the mouse so your eye doesn’t have to leave that map region to see that region’s details&lt;/p&gt;
&lt;p&gt;&lt;a href="http://mhkeller.github.com/cartodb-templates/"&gt;&lt;img alt="image" src="http://i.imgur.com/DOuLfi1.png" width="500px"/&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p class="p3"&gt;&lt;span class="s2"&gt;• &lt;/span&gt;Templates with Underscore.js hover windows include sample formatHelper functions to act as a formatting layer between your data values and how you want them to display. For instance, you could store all your feature attributes as boolean variables and run them through various formatHelpers functions to return nice display strings.&lt;/p&gt;
&lt;p class="p3"&gt;&lt;span class="s2"&gt;• &lt;/span&gt;The hover states work by storing a simplified GeoJSON representation of that feature as a feature attribute. On featureOver, that GeoJSON is plotted as a vector using Leaflet.js.&lt;/p&gt;
&lt;p class="p3"&gt;&lt;span class="s2"&gt;• &lt;/span&gt;Point + polygon templates add a secondary style class to hover windows when hovering over points to differentiate from polygons.&lt;/p&gt;
&lt;p class="p2"&gt;&lt;span&gt;If you have any questions, I’m at @mhkeller. If you have improvements, pull requests at &lt;/span&gt;&lt;a href="http://github.com/mhkeller/cartodb-templates"&gt;&lt;a href="http://github.com/mhkeller/cartodb-templates"&gt;http://github.com/mhkeller/cartodb-templates&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;

&lt;/blockquote&gt;
&lt;p&gt;&lt;/p&gt;</description><link>http://newsbeastlabs.tumblr.com/post/47127350585</link><guid>http://newsbeastlabs.tumblr.com/post/47127350585</guid><pubDate>Thu, 04 Apr 2013 15:50:00 -0400</pubDate></item><item><title>It was the Monday morning news meeting and all we could talk...</title><description>&lt;img src="http://25.media.tumblr.com/750d851d069a788d50d14197abede8ca/tumblr_mj7lnlGH251riqdl6o1_500.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;&lt;p class="p1"&gt;It was the Monday morning news meeting and all we could talk about was Dennis Rodman, Kim Jong-un, and Vice Media. It was&lt;a href="http://www.nytimes.com/2013/03/04/business/media/dennis-rodman-in-north-korea-with-vice-media-as-ringleader.html?pagewanted=all" target="_blank"&gt; the strangest story of the week&lt;/a&gt;, and utterly riveting. But &lt;a href="http://www.thedailybeast.com/articles/2013/03/05/forget-rodman-guys-like-jeff-bewkes-are-the-real-winners-of-vice-s-north-korea-stunt.html" target="_blank"&gt;there was more to it&lt;/a&gt; than what had already been reported.&lt;/p&gt;
&lt;p class="p1"&gt;The Vice show is funded by HBO, which is owned by Time Warner, which has a boatload of shareholders. Vice Media itself has a whole range of wealthy investors, including former Viacom CEO Tom Freston and The Raine Group, a who’s who of one-percenters. Meaning: a lot of people stand to benefit from the hospitality/propaganda machine of the one of the world’s most notorious dictators.&lt;/p&gt;
&lt;p class="p1"&gt;Reporter Caitlin Dickson started looking at the various connections, using &lt;a href="http://littlesis.org/" target="_blank"&gt;LittleSis.org&lt;/a&gt;, an online database that tracks the social connections among the powerful—politicians, business leaders, lobbyists, hedge funders, etc. LittleSis is a project of the nonprofit &lt;a href="http://public-accountability.org/" target="_blank"&gt;Public Accountability Initiative&lt;/a&gt; and a great, easily-searchable, user-friendly source for reporters. You can search people and companies, find out how they’re connected to each other and to whom they donate money.&lt;/p&gt;
&lt;p class="p1"&gt;Check out the screenshot for an example, and &lt;a href="http://www.thedailybeast.com/articles/2013/03/05/forget-rodman-guys-like-jeff-bewkes-are-the-real-winners-of-vice-s-north-korea-stunt.html" target="_blank"&gt;the story for the final product&lt;/a&gt;. Caitlin was on deadline pressure so was only able to scrape the surface on the Vice story, but there’s no doubt much more to mine.&lt;/p&gt;

&lt;p class="p1"&gt;-Paula Szuchman, deputy managing editor&lt;/p&gt;&lt;/p&gt;</description><link>http://newsbeastlabs.tumblr.com/post/44789113208</link><guid>http://newsbeastlabs.tumblr.com/post/44789113208</guid><pubDate>Thu, 07 Mar 2013 11:34:00 -0500</pubDate><category>the daily beast</category><category>north korea</category><category>dennis rodman</category></item><item><title>Last month we published a package of stories marking the...</title><description>&lt;img src="http://24.media.tumblr.com/0120afe160ff0087265ec1747831965e/tumblr_miuah6LjHy1riqdl6o1_500.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;Last month we &lt;a href="http://www.thedailybeast.com/articles/2013/01/22/roe-v-wade-turns-40.html" target="_blank"&gt;published a package of stories&lt;/a&gt; marking the fortieth anniversary of the Roe v. Wade decision. It had a few moving parts but I’ll just go over some of them briefly here.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;How it started&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;This summer you probably heard the story about the &lt;a href="http://www.theatlantic.com/national/archive/2013/01/will-mississippi-close-its-last-abortion-clinic/267352/" target="_blank"&gt;last abortion clinic in Mississippi&lt;/a&gt; that was threatened to close due to stricter state laws. &lt;a href="http://www.twitter.com/aliyarrow" target="_blank"&gt;Allison Yarrow&lt;/a&gt;, who sat across from me at the time, was covering the story and it got us thinking: the line “The Last Abortion Clinic in Mississippi” is attention grabbing, but it doesn’t tell the whole story. That is to say, what you really want to know is how far are people away from their nearest clinic, regardless of state boundaries. One state may have five clinics but if they’re all in the southwest corner of the state and you live in the northeast corner, and your adjoining states have multiple clinics but only at their borders farthest from you, then you’ll have a hard time getting to a clinic, even if you had many in your state. To see where this might be the case and where access to services was compounded by new restrictive provisions (over 150 nationally in the past two years) we made as close to a comprehensive database as possible of every abortion clinic. Our goal was to see what parts of the country were farthest from a clinic. From start to finish, this process took about six months. &lt;/p&gt;
&lt;p&gt;We got our address data from a variety of publicly available sources: Planned Parenthood, the National Abortion Federation, anti-abortion websites that keep their own lists and others. We needed to verify that the address information was correct, though, so we called over 750 clinics to confirm. We also asked them up to how many weeks they offer services. The resulting database is the only one of its kind that we know of. The Guttmacher Institute undertook an&lt;a href="http://onlinelibrary.wiley.com/doi/10.1363/4304111/abstract" target="_blank"&gt; abortion provider census in 2008&lt;/a&gt; but they didn’t separate clinics from hospitals from private doctors offices, which represent different levels of care that we thought was an important distinction.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What it became&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;We started this in July and the project evolved. We thought the election might bring the issue of abortion access to the fore but it didn’t and that gave us more time. Allison brought up the fortieth anniversary of Roe v. Wade and that let us think much bigger about the project. Because this was such a personal subject matter, we knew readers’ comments would feature prominently (from both sides of the issue) and we wanted a strong narrative component, too.&lt;/p&gt;
&lt;p&gt;To give a human voice to the Geography of Abortion Access map, &lt;a href="http://www.thedailybeast.com/articles/2013/01/25/in-wichita-the-ground-zero-of-the-abortion-war-a-new-clinic-rises.html" target="_blank"&gt;Allison flew to Wichita, Kansas&lt;/a&gt;, one of the areas that stood out both on our map, as a metro area far from a clinic, as well as in recent memory as the site of the 2008 murder of late-term abortion provider George Tiller. To add a broader perspective, Sam Register who runs the &lt;a href="http://nwkarchivist.tumblr.com" target="_blank"&gt;Newsweek Archivist tumblr&lt;/a&gt; went through the Newsweek archives so people could follow &lt;a href="http://www.thedailybeast.com/articles/2013/01/25/flashback-newsweek-s-abortion-coverage.html" target="_blank"&gt;the topic’s coverage from the 70s through the 00s&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What we learned from reader’s stories&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Over the course of the week, we shifted the question we were asking from &lt;a href="http://www.thedailybeast.com/articles/2013/01/04/interactive-readers-share-their-views-on-and-stories-about-abortion.html" target="_blank"&gt;why do you support or oppose legal abortion&lt;/a&gt; to a conversation about &lt;a href="http://www.thedailybeast.com/articles/2013/01/22/interactive-readers-share-their-views-on-the-pro-choice-and-pro-life-labels.html" target="_blank"&gt;pro-life and pro-choice labels&lt;/a&gt; as a way to get more nuanced opinions and show the complexity of the issue. We asked readers to complete either the phrase “I’m pro-life but…” or “I’m pro-choice but…” We got more responses from our other reader-based projects but we were happy in how thoughtful and honest people were. &lt;a href="http://www.thedailybeast.com/articles/2013/01/22/daily-beast-readers-share-their-stories-about-abortion.html" target="_blank"&gt;Read our roundup of interesting responses to those questions as well as our free form “Tell us your story” prompt here.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Under the hood on the map&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;How to represent this dataset was tricky. We had three main issues: anonymity, unbiased geography, and context. &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Anonymity&lt;/strong&gt;: Although we got our data from publicly available websites that anyone could find and was often information that anti-abortion groups already held, we weren’t comfortable publishing addresses, names, or exact latitudes and longitudes. We took great care to do things like scrub our final database of anything identifiable and we partially randomized each clinic’s location so they weren’t pinpoint-able from our map. On the presentation level, we added the magenta circle big enough to span multiple hexagons (our base geography layer) to let people know that an address was approximate. Even if you backtrack and find our database, you won’t get any information that would let you de-anonymize the data.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Unbiased geography&lt;/strong&gt;&lt;span&gt;: As I wrote above, we wanted to get away from the arbitrary state and county borders that most all of the research we encountered was based on. We did some initial plots using Census tracts but that presents exactly the same problem [photo]. We ended up making a hexagonal grid using the &lt;a href="http://www.jennessent.com/arcgis/repeat_shapes.htm" target="_blank"&gt;Repeating Shapes plugin&lt;/a&gt; for ArcMap, which lets you make a grid out of your choice of shape and size. The trick to making a hexagonal grid for the web so that the hexagons will be regular (all sides equal) no matter what degree of latitude they fall on is to make the grid in your output projection, Web Mercator EPSG: 3857. You can reproject it to do your analysis in whatever you like, but because it will eventually be displayed in Web Mercator, it will need to be created in that so as not to come out distorted in the browser. If you want a 20,000 meter in diameter hexagonal grid, here’s the one we used: &lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;a href="http://newsbeastlabs.thedailybeast.com.s3.amazonaws.com/nbl-files/files/2013/02/roe-v-wade/hexagon-grids/hex_grid_20k.zip" target="_blank"&gt;Shapefile&lt;/a&gt;&lt;span&gt;, &lt;/span&gt;&lt;a href="http://newsbeastlabs.thedailybeast.com.s3.amazonaws.com/nbl-files/files/2013/02/roe-v-wade/hexagon-grids/hex_grid_20k.kml" target="_blank"&gt;KML&lt;/a&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;a href="http://newsbeastlabs.thedailybeast.com.s3.amazonaws.com/nbl-files/files/2013/02/roe-v-wade/hexagon-grids/hex_grid_20k.geojson" target="_blank"&gt;GeoJSON&lt;/a&gt;&lt;span&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;And here’s another one that &lt;a href="http://www.twitter.com/brianabelson" target="_blank"&gt;Brian Abelson&lt;/a&gt;, current Knight-Mozilla Fellow at the New York Times, made while he was helping out on the project. They are also 20,000 meter hex grids. This one has the state borders preserved in case you want to assign state values to each hexagon: &lt;a href="http://newsbeastlabs.thedailybeast.com.s3.amazonaws.com/nbl-files/files/2013/02/roe-v-wade/hexagon-grids/usa_hex.zip" target="_blank"&gt;Shapefile&lt;/a&gt;, &lt;a href="http://newsbeastlabs.thedailybeast.com.s3.amazonaws.com/nbl-files/files/2013/02/roe-v-wade/hexagon-grids/usa_hex.kml" target="_blank"&gt;KML&lt;/a&gt;, &lt;a href="http://newsbeastlabs.thedailybeast.com.s3.amazonaws.com/nbl-files/files/2013/02/roe-v-wade/hexagon-grids/usa_hex.geojson" target="_blank"&gt;GeoJSON&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Context&lt;/strong&gt;: Generating our distance map wasn’t enough to tell a story with. We added three other pieces of information that would walk people through the significance of the patterns they were seeing. The first was a map of female population aged 15-44 so that people could see the areas where women lived that were farthest away from clinics and identify significant metro areas (the pink dot density overlay). The second was the different legal restrictions that each area was subject to (areas with highlighted transparency). Again, this was an interesting way to visualize this data because we didn’t highlight every hexagon in Kansas, for example, to show that certain laws were applicable in Kansas. Instead, we highlighted hexagons whose closest clinic was in Kansas. This gave us a very realistic map so that people could see what state laws they would be subject to if their nearest clinic was across state lines. It also visually demonstrates how state laws can affect people that don’t live in that state. And third, we selected our own highlights from going through the data, such as the areas where telemedicine is banned in conjunction with mandatory in-person counseling. The combination of these laws in Arizona, for instance, means some women travel over a hundred miles and spend two days to get a prescription for the abortion bill. &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;More under the hood&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The map itself we built using CartoDB, which allowed us to very flexibly add the different highlighted views of the map without rebaking our tiles each time.The slider that shows clinics that only offer services up to X weeks we did by loading four tile layers on top of each other at once and show/hiding them depending on the slider value. This made the map slightly slower on initial load but it made the transitions between map states super fast — so a trade-off. &lt;/p&gt;
&lt;p&gt;For the highlighted states, those restyle and reload all four map layers as well. We used Leaflet.js’s ability to plot vectors to draw the line between the hexagon you’re hovering over and the closest clinic to provide some more descriptive interaction.&lt;/p&gt;
&lt;p&gt;The heatmap was created through ArcGIS from census tract data. We filtered for just the number of women of reproductive age, 15 to 44, per tract and then used the Create Random Points function in ArcGIS to create one point for every 210 women. We came up with the 210:1 ratio by looking at a histogram of the data to see what would be an accurate dividing point. For a shameless plug, I used an online tool that I made called &lt;a href="http://www.Histagram.me"&gt;www.Histagram.me&lt;/a&gt; to generate quick, interactive histograms. Feel free to use it too.&lt;/p&gt;
&lt;p&gt;Because the heatmap itself is done with &lt;a href="http://developers.cartodb.com/tutorials/intensity_map.html" target="_blank"&gt;CartoCSS layering techniques&lt;/a&gt; and not a statistically calculated heatmap, we made sure to compare side-by-side with a choropleth tracts map of the same data using Jenks-clustered color breaks to make sure that our heatmap told the same story as the choropleth. &lt;/p&gt;
&lt;p&gt;A few months ago we spoke with Andrew Hill, Senior Scientist at Vizzuality (who makes CartoDB) on some experimental ways to map the data. The line on hover came out of some of his renderings and you can see in the photos below some of the experimental line styles.&lt;/p&gt;
&lt;p&gt;All in all it was a lot of team work, Allison, Abby, Brian, Caitlin, Lizzie, Sam and a number of other people all helped with parts of it over the course of six months. If you have any other questions about it, let me know at michael.keller@newsweekdailybeast.com&lt;/p&gt;
&lt;p&gt;-Michael&lt;/p&gt;
&lt;p&gt;Before we settled on the Value-by-alpha approach for showing the different state laws, some failures:&lt;/p&gt;
&lt;p&gt;We tried outlining the different shapes and showing them in different colors:&lt;/p&gt;
&lt;p&gt;&lt;img alt="" src="http://newsbeastlabs.thedailybeast.com.s3.amazonaws.com/nbl-files/failures/2013/02/roe-v-wade/grouping-by-laws.png"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="image" src="src"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="" src="http://newsbeastlabs.thedailybeast.com.s3.amazonaws.com/nbl-files/failures/2013/02/roe-v-wade/colored-by-laws.png"/&gt;&lt;/p&gt;

&lt;p&gt;We tried coloring the hexagon outline by the different laws that were in effect. Creating a sensical hierarchy proved difficult:&lt;/p&gt;
&lt;p&gt;&lt;img alt="" src="http://newsbeastlabs.thedailybeast.com.s3.amazonaws.com/nbl-files/failures/2013/02/roe-v-wade/hexagon-outline-colored-by-law-severity.png"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="" src="http://newsbeastlabs.thedailybeast.com.s3.amazonaws.com/nbl-files/failures/2013/02/roe-v-wade/hexagon-outlines.png"/&gt;&lt;/p&gt;
&lt;p&gt;Lines instead of hexagons:&lt;img alt="" src="http://newsbeastlabs.thedailybeast.com.s3.amazonaws.com/nbl-files/failures/2013/02/roe-v-wade/zoomed-in-lines.png"/&gt;&lt;/p&gt;
&lt;p&gt;Highlighting Peurto Rico:&lt;/p&gt;
&lt;p&gt;&lt;img alt="" src="http://newsbeastlabs.thedailybeast.com.s3.amazonaws.com/nbl-files/failures/2013/02/roe-v-wade/peurto-rico.png"/&gt;&lt;/p&gt;
&lt;p&gt;A value-by-alpha chart where census tracts are shaded by their percentage of women of reproductive age. Unfortunately, it’s not that intelligible and the heat map overlay is a much cleaner way of showing this relationship:&lt;/p&gt;
&lt;p&gt;&lt;img alt="" src="http://newsbeastlabs.thedailybeast.com.s3.amazonaws.com/nbl-files/failures/2013/02/roe-v-wade/vba.png"/&gt;&lt;/p&gt;
&lt;p&gt;Before we made the hexagon grid, how the map looks if you use census tracts:&lt;/p&gt;
&lt;p&gt;&lt;img alt="" src="http://newsbeastlabs.thedailybeast.com.s3.amazonaws.com/nbl-files/failures/2013/02/roe-v-wade/tracts.png"/&gt;&lt;/p&gt;</description><link>http://newsbeastlabs.tumblr.com/post/44073339058</link><guid>http://newsbeastlabs.tumblr.com/post/44073339058</guid><pubDate>Tue, 26 Feb 2013 13:26:00 -0500</pubDate><category>daily beast</category><category>cartodb</category><category>roe v wade</category><category>abortion</category><category>mapping</category><category>gis</category><category>ugc</category><category>arcgis</category></item><item><title>After the Newtown shooting in December, we had a meeting over...</title><description>&lt;img src="http://25.media.tumblr.com/760cdc782f2f09724a015d772515bf27/tumblr_mi67yxGWLo1riqdl6o1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;After the Newtown shooting in December, we had a meeting over the phone to discuss our coverage. We decided to have a two speed approach: a quick reader-driven story about why they do or don’t own guns (which we’ve &lt;a href="http://newsbeastlabs.tumblr.com/post/38245079786/our-last-wednesday-workshop-focused-in-part-on" title="Guns" target="_blank"&gt;written about a bit&lt;/a&gt; on this blog), and a deeper-dive look at the anticipated legislative issue that this and other recent shootings seemed to be bringing about, which we launched Monday as &lt;a href="http://thisisyourreponguns.com" title="ThisIsYourRepOnGuns.com" target="_blank"&gt;&lt;a href="http://www.ThisIsYourRepOnGuns.com"&gt;www.ThisIsYourRepOnGuns.com&lt;/a&gt;&lt;/a&gt;. The project idea grew out of the simple problem that not many people can name their representatives off the top of their head, let alone know their exact stance on gun control or how to get in touch to make their voice heard.&lt;/p&gt;
&lt;p&gt;Eliza Shapiro, Abby Haglage and Caitlin Dickson did some awesome reporting for all 530+ representatives, digging through their voting records and previous public statements to distill their position to one of four categories: Opposes reform, Supports reform, Swing vote, or Unclear. We kept track of the sources, too, so that we could present representatives’ statements to the reader when the final thing was done. &lt;/p&gt;
&lt;p&gt;&lt;span&gt;Brian Abelson was also around to rig together @RepsGunTweets (since renamed &lt;a href="http://www.twitter.com/yourreponguns" title="YourRepOnGuns" target="_blank"&gt;@YourRepsOnGuns&lt;/a&gt;), which served as both a tool to monitor reps’ statements to see what category they fell into, as well as an open feed for anyone interested in the topic to follow on Twitter. Read about how that was built in &lt;a href="http://newsbeastlabs.tumblr.com/post/41373060897/update-feb-10-repsguntweets-has-been-changed-to" title="RepsGunTweets How It's Made" target="_blank"&gt;this blog post&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The interactive currently stacks up the number of reps in each category and lets you do a combination filter by different criteria such as chamber, party and state. You can see things like how likely &lt;/span&gt;legislation&lt;span&gt; is to pass each chamber and where different states stand. Importantly, too, you can put in your address read information on your House representative and two Senators. Using information compiled by the Sunlight Foundation, it gives you their phone, fax (for those that prefer the fax), address, twitter, website and Facebook page so you can get in touch with them. We also pulled in each representatives NRA grade and their rating from the Brady Campaign to Prevent Gun Violence to give more context to their legislative history.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;My favorite part of it though, is that we’ll be updating it as the gun debate goes on. We’ve already received emails from readers who have contacted their reps with statements that we’ll add and one person sent us a local news story from their congressperson that will move him from the Oppose reform to a Swing vote. We’ll mark these updates on the landing page so people can follow along and readers can leave their email to be notified of updates.&lt;/p&gt;
&lt;p&gt;We also did this as its own URL similar to how we did &lt;a href="http://www.havingtroublevoting.com" title="Having Trouble Voting" target="_blank"&gt;&lt;a href="http://www.HavingTroubleVoting.com"&gt;www.HavingTroubleVoting.com&lt;/a&gt;&lt;/a&gt;. As a resource and tool that was going to hopefully have a long life, we felt an easy to remember and dedicated page showed our readers that this was something they could keep coming back to.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;Under the hood&lt;/strong&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The hardest part of this was getting all of the data from multiple different sources into one nice database. We had a few different people researching, different numbers coming in from different places, and multiple editors editing. We used Google Spreadsheets and good spreadsheet etiquette to make sure people were marking the categories the same way and joined them in R. &lt;/p&gt;
&lt;p&gt;&lt;span&gt;To make the stance information simple to update, the map copies that information from the main table on load instead of storing it separately with the map data.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The main page uses &lt;a href="http://isotope.metafizzy.co/" title="Isotope.js" target="_blank"&gt;Isotope.js&lt;/a&gt;, which we’ve used a bunch before. But this was a little tricky because we needed to sort them into four columns. Fortunately, there’s &lt;a href="http://isotope.metafizzy.co/custom-layout-modes/big-graph.html" title="Isotope BIG Graph" target="_blank"&gt;some crazy extension for Isotope&lt;/a&gt; that lets you do just that. The harder part was figuring out how to get it to display top to bottom instead of bottom to top. But buried in the “Tests” documentation was a page on &lt;a href="http://isotope.metafizzy.co/tests/right-to-left.html" title="Isotope right-to-left" target="_blank"&gt;how to make your elements stack right-to-left&lt;/a&gt; for languages like Hebrew and Arabic. It includes the settings to rotate the positioning, which worked.&lt;/p&gt;
&lt;p&gt;The only fancy mapping feature is if you click on a district, the map automatically pans and zooms to fit the founds of that district. This is done using the ST_Envelope() function in PostGIS through CartoDB. ST_Envelope() returns the bounding box of a given feature which you can sent to Leaflet.js’s fitBounds() method to pan and zoom to that box. The only problem to be aware of is ST_Envelope() will give you an array of x and y values but fitBounds() is expecting the format to be in y then x (lat, then long). As long as you reorder the elements in your coordinate array, Leaflet will be happy.&lt;/p&gt;
&lt;p&gt;Getting the aesthetics of the map right was a little tricky. I wanted to make sure that a highlighted feature’s outline appears above the other features but below its own fill so you get a bright white border and then a subtler inner border. If you follow the &lt;a href="http://mapbox.com/tilemill/docs/guides/symbol-drawing-order/" title="TileMill" target="_blank"&gt;symbol drawing order&lt;/a&gt; and &lt;a href="http://mapbox.com/tilemill/docs/guides/comp-op/" title="Compositing options" target="_blank"&gt;compositing option&lt;/a&gt; rules in CartoCSS it becomes manageable.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;From the failures folder&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://newsbeastlabs.thedailybeast.com/nbl-files/failures/2013/02/representative%20mock%20up2-01.png" title="Mockup" target="_blank"&gt;Here’s what the original mock-up looked like&lt;/a&gt;, which we weren’t too far off from. I reworked the top nav hierarchy into two main buttons, added more color and turned the rep detail elements into three columns instead of rows so it was more compact and graphic.&lt;/p&gt;

&lt;p&gt;-Michael&lt;/p&gt;</description><link>http://newsbeastlabs.tumblr.com/post/43013339844</link><guid>http://newsbeastlabs.tumblr.com/post/43013339844</guid><pubDate>Wed, 13 Feb 2013 13:27:00 -0500</pubDate><category>gun control</category><category>gun rights</category><category>The Daily Beast</category><category>newsweek</category></item><item><title>The other month, we asked readers why they did or did not own...</title><description>&lt;img src="http://24.media.tumblr.com/2d956cbaa5a3a5fdf6e881fc2bac4542/tumblr_mi3cyq3VL81riqdl6o1_500.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;The other month, we asked readers why they did or did not own guns. &lt;a href="http://www.thedailybeast.com/articles/2012/12/17/interactive-sound-off-on-gun-control.html" title="Own a gun? Tell us why" target="_blank"&gt;Here’s the post on the creation of that&lt;/a&gt;. We ended up getting over 1,500 responses, and our readers were largely thoughtful in what they wrote. Before we launched this project, we didn’t know how our audience would break down into gun owners and non-gun owners, and whether we would get the usual talking points from each side or hear new points of view. We fortunately did see a lot of interesting stories and patterns. But uncovering those trends in over a thousand responses in only a few days was a challenge. Reading through every response on deadline was unfeasible, so we had a machine do it. &lt;/p&gt;
&lt;p&gt;The idea of using natural language processing to make sense of a large number of reader comments came from Blair Hickman, Social Media Producer at ProPublica and we ended up using the Overview Project a natural language processing tool developed by the Associated Press (screenshotted above). You can read more about the technicals of how it works &lt;a href="http://overview.ap.org/" title="Overview" target="_blank"&gt;here&lt;/a&gt; but generally, it looks for clusters of related words and groups them together in that tree layout you see. &lt;/p&gt;
&lt;p&gt;Some interesting trends (&lt;a href="http://www.thedailybeast.com/articles/2012/12/22/the-best-of-our-gun-debate-readers-weigh-in-on-owning-firearms.html" title="The Daily Beast" target="_blank"&gt;Read the analysis with selected comments&lt;/a&gt;) that surfaced were a group of comments about how growing up with guns influenced people to both own and not own guns later in life. Many people framed their non-ownership of guns around their lack of a need and the algorithm found this cluster around phrases with “need” in them. Viewed in this light, many gun owner responses can be seen as implicitly responding to this prompt, explaining their clear, pragmatic need for gun ownership such as hunting, protection in rural areas or many others we included. Overview also brought out repeated comments that had variations on the phrase “When seconds count, police are minutes away,” a similar need for self-protection or a desire for self-reliance, depending on how you interpret it.&lt;/p&gt;
&lt;p&gt;A number of readers discussed how their association with the military sometimes led them to be comfortable with firearms or, in many cases, the opposite. As one person put it: “As an army officer I came to realize many guns are tools created with a main purpose of killing. I don’t hunt and I don’t target shoot. No need for a gun.”&lt;/p&gt;
&lt;p&gt;The clustering algorithm also grouped comments related to how experiences with family members committing suicide led people to not own guns, as well as religion. The posts concerning religion were especially interesting since in 2008 campaign speech, President Obama said that some people “cling to guns or religion” as a way to “explain their frustrations” with society. All of the comments submitted to us that discussed religion were from staunch non-gun owners, however. &lt;/p&gt;
&lt;p&gt;&lt;span&gt;I think &lt;a href="http://www.thedailybeast.com/articles/2012/12/22/the-best-of-our-gun-debate-readers-weigh-in-on-owning-firearms.html" title="Reader comments" target="_blank"&gt;the post&lt;/a&gt; is worth a read if you’re interested in seeing an attempt at surfacing a conversation. On the design side, you can see we tried to get out of the way of the readers’ voices as much as possible: we wrote a short sentence intro framing each collection of comments and then let them tell their stories. Our front-end dev wiz Lynn Maharas actually pushed through that blue background quote style — which didn’t exist on our site before — especially for this so that we could string a bunch of quotes together and still be readable.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Using Overview was pretty easy, especially since it has a web interface now that you can upload your documents to. You have to remove any commas, first, however. We augmented some clusters with simple keyword searches of thematically related words that the algorithm might not be able to connect the dots between. For instance, if military was one cluster, we might want to look at Navy and Army as related words. This might not actually give any extra insight since the algorithm is looking for clusters anyway so it might pick up on those. But it could help guide a more analog approach once the machine has broken things down into potentially interesting categories. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;We clustered the spreadsheets of responses independently of one another, but one analysis would be to see if the machine would divide them automatically into two camps. Always more analysis to be done than deadlines allow. Here’s &lt;a href="http://newsbeastlabs.thedailybeast.com/nbl-files/files/2013/02/own-a-gun-tell-us-why-csvs/reader-responses-by-state.zip" title="The data" target="_blank"&gt;the anonymized data&lt;/a&gt; though, let us know at NewsBeastLabs@gmail.com if you find anything interesting.&lt;/p&gt;
&lt;p&gt;-Michael&lt;/p&gt;</description><link>http://newsbeastlabs.tumblr.com/post/42928650674</link><guid>http://newsbeastlabs.tumblr.com/post/42928650674</guid><pubDate>Tue, 12 Feb 2013 11:01:25 -0500</pubDate><category>overview</category><category>associated press</category><category>the daily beast</category><category>newsbeastlabs</category><category>natural language processing</category><category>blair hickman</category></item><item><title>UPDATE: FEB 10 @RepsGunTweets has been changed to...</title><description>&lt;img src="http://25.media.tumblr.com/86d932f35483ccfb9eddcb542bd1170d/tumblr_mh58adYfCu1riqdl6o1_500.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;&lt;em&gt;&lt;br/&gt;&lt;/em&gt;&lt;strong&gt;UPDATE: FEB 10 @RepsGunTweets has been changed to @YourRepsOnGuns. Check out &lt;a href="http://www.ThisIsYourRepOnGuns.com"&gt;www.ThisIsYourRepOnGuns.com&lt;/a&gt; for the ongoing project.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Brian Abelson is a data scientist who is graciously donating his time at NewsBeast Labs before he starts a full-time position as a Knight-Mozilla Open News Fellow at the New York Times in February.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;For an upcoming project on the gun debate, we’ve been monitoring statements representatives have made on the topic. As President Obama prepared to unveil his proposal for gun control on Wednesday, Michael and I were curious to see the reactions of representatives to the highly publicized announcement and be able to report that in real-time. Given the degree to which breaking news is now reported (and responded to) on social media, we thought it would be useful to build a bot to log officials’ comments on certain issues and present them in real time. Such a tool could be used by news rooms to engage their readers on a continuous basis by aggregating and serving content from members of particular communities or who serve on different committees.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.twitter.com/repsguntweets" target="_blank"&gt;@RepsGunTweets was born.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;We were inspired by the work of 2013 Mozilla-Knight OpenNews fellows who recently built a prototpe for an app called “if (this) then news,” a news-oriented take on IFTTT – a site for linking triggers from gmail, twitter, dropbox, and other services to actions on the web. Applying this logic to news coverage, the fellows created the shell for a tool that would monitor live data streams, detect important events, and issue notifications. As Vice President Biden took the mic, we started furiously coding up a bot that would follow the twitter accounts of US Representatives and retweet any comment that included “gun”, “assault weapon”, “firearm”, or other relvant keywords. After a couple hours of missteps and headaches, we eventually got @RepsGunTweets up and running. In the last ten days, the bot has logged 307 tweets; two-thirds of which came in the first three days. We’re still analyzing the conversation but one interesting observation is representatives who are not in favor of gun control tend to link to longer explanations of their position on their website instead of tweet a comment.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Under the hood&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;At its core a retweet bot is a pretty simple tool: Follow a feed, find what matters, and serve it back up under a single account. The harder part is figuring out how to accurately communicate with Twitter’s API. Using &lt;a href="http://tweepy.github.com/" target="_blank"&gt;tweepy for python&lt;/a&gt; we were able to easily access twitter’s numerous methods. All we needed to provide it with were the the consumer key, consumer secret, access token, and access token secret for an application generated on &lt;a href="http://dev.twitter.com/apps" target="_blank"&gt;&lt;a href="http://dev.twitter.com/apps"&gt;http://dev.twitter.com/apps&lt;/a&gt;&lt;/a&gt;. The bot follows CSPAN’s &lt;a href="https://twitter.com/cspan/members-of-congress" target="_blank"&gt;member of congress list&lt;/a&gt; and applies a regular expression for the desired keywords and retweets any matches.For even more technical info, check out &lt;a href="https://github.com/abelsonlive/regextweet" target="_blank"&gt;this Github page&lt;/a&gt;&lt;/p&gt;</description><link>http://newsbeastlabs.tumblr.com/post/41373060897</link><guid>http://newsbeastlabs.tumblr.com/post/41373060897</guid><pubDate>Thu, 24 Jan 2013 13:49:00 -0500</pubDate><category>NewsBeastLabs</category><category>twitter</category><category>gun control</category><category>gun rights</category><category>firearms</category><category>nra</category><category>newsweek</category><category>daily beast</category></item><item><title>Responsive Design - A Mobile Retrofit
A few weeks ago we...</title><description>&lt;img src="http://24.media.tumblr.com/e1fcd20480b6797267eaac04b4cc7aa3/tumblr_mgbsuon0Ht1riqdl6o1_r1_500.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;h3&gt;&lt;strong&gt;Responsive Design - A Mobile Retrofit&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;A few weeks ago we launched our new mobile optimized design of &lt;a href="http://www.thedailybeast.com/"&gt;thedailybeast.com&lt;/a&gt;, and we couldn’t be more excited! Go check it out if you haven’t already (if you’re not using a mobile device scroll to the bottom and click on “Mobile Site”). &lt;/p&gt;
&lt;p&gt;Our CTO Matt Stowe’s favorite thing about it is everything loads from the same exact URL as before — there’s no m.thedailybeast.com. In his words: “Why is this great? Because no matter how you share, bookmark, email, or use the link, the site serves you an optimized experience for your device.”&lt;/p&gt;
&lt;p&gt;The challenge was to take our existing design and reorganize the content into a space less than 1/3 of the desktop size. In addition, we needed to account for a wide range of phone sizes, layouts (portrait/landscape) and resolutions (up to 300ppi). Based on the new design and requirements we decided to recreate all the markup and css for the entire site….10 weeks and 1,342 cups of coffee later we had ourselves a mobile site! Here are two features that we’re most excited about:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Responsive Design&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://ethanmarcotte.com/"&gt;Ethan Marcotte&lt;/a&gt;, who coined the term “&lt;a href="http://www.alistapart.com/articles/responsive-web-design/"&gt;Responsive Web Design&lt;/a&gt;”, describes 3 foundations as core to a responsive site:&lt;/p&gt;
&lt;ol&gt;&lt;li&gt;Flexible Grid&lt;/li&gt;
&lt;li&gt;Fluid Images&lt;/li&gt;
&lt;li&gt;Media Queries&lt;/li&gt;
&lt;/ol&gt;&lt;p&gt;Instead of creating multiple versions of the site to fit multiple device sizes and resolutions we decided to use a responsive design approach by implementing a flexible grid system. This way our site will expand and contract to fit any width browser. For example, when your phone is turned from portrait to landscape, the site will respond by expanding to fit the screen. To produce this, we are using a &lt;a href="http://www.designinfluences.com/fluid960gs/12/"&gt;12-column flexible grid&lt;/a&gt; designed by Stephen Bau that is based on the great work by &lt;a href="http://960.gs/"&gt;960 Grid System&lt;/a&gt; (we love grids!). All columns widths are set as a percentage of the page rather than a fixed pixel width which allows the site to expand or contract to any size.&lt;/p&gt;
&lt;p&gt;The easiest part of the design was making all the images “&lt;a href="http://www.alistapart.com/articles/fluid-images/"&gt;fluid&lt;/a&gt;” by setting their width to 100%. Now images will expand/contract to fill the size of their parent element. As for media queries, new in css3, we are currently modifying the navigation so that each element is spaced properly based on site width. In the future, we hope to implement tablet and desktop media queries for a seamless site experience across all devices.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Icon Fonts&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;With the new responsive site we decided to abandon the use of &lt;a href="http://css-tricks.com/css-sprites/"&gt;sprites&lt;/a&gt; and most icon images in our css and have opted for creating our own icon font instead. Now when you visit the mobile site, all the icons are actually a part of our custom font, not jpgs or pngs. The browser references all icon images from a small font file (~30kb). One of the benefits is that your browser will not be downloading lots of icon images, taking up device memory, bandwidth and adding to the time it takes each page to download.&lt;/p&gt;
&lt;p&gt;An additional benefit of using a font is also so that we don’t have to recut new images if designs change and we need the image slightly bigger, smaller or a different color. Now we can change each instance of the icon with css adjusting it accordingly. Lastly, icon images will never look blurry since they are now vector data (like an .svg) instead of raster (.jpg). Here’s an example of why &lt;a href="http://css-tricks.com/examples/IconFont/"&gt;icon fonts are awesome&lt;/a&gt;. You can make your own custom fonts over at &lt;a href="http://icomoon.io/"&gt;icomoon.io&lt;/a&gt; or download the &lt;a href="https://chrome.google.com/webstore/detail/icomoon/kppingdhhalimbaehfmhldppemnmlcjd?hl=en"&gt;icomoon chrome extension&lt;/a&gt; and work on your fonts offline.&lt;/p&gt;
&lt;p&gt;Shout out to the entire development and design teams who created lots of really great features!&lt;/p&gt;
&lt;p&gt;— Lynn Maharas, Front End Developer&lt;/p&gt;</description><link>http://newsbeastlabs.tumblr.com/post/40036032559</link><guid>http://newsbeastlabs.tumblr.com/post/40036032559</guid><pubDate>Tue, 08 Jan 2013 16:25:00 -0500</pubDate></item><item><title>Six Months in Review</title><description>&lt;p&gt;NewsBeast Labs is roughly six months old and we&amp;#8217;ve had a lot of fun. This tumblr has most of our projects for the past few months but there are a bunch from before our launch. Here&amp;#8217;s a rough list of projects we&amp;#8217;ve done so far.&lt;/p&gt;
&lt;p class="p1"&gt;&lt;a href="http://www.thedailybeast.com/articles/2012/06/28/legal-experts-decode-the-supreme-court-s-obamacare-ruling.html" title="Legal Experts Decode the Supreme Courts Obamacare Ruling" target="_blank"&gt;Legal Experts Decode the Supreme Court’s Obamacare Ruling&lt;/a&gt; - Our very first project! We launched it the day we got DocumentCloud, which was also the morning of the Supreme Court ruling on Obamacare. We asked two law professors to make margin notes in the text of the ruling as they were reading it for the first time. Readers could follow along and read experts&amp;#8217; reactions as the conversation was happening.&lt;/p&gt;
&lt;p class="p1"&gt;&lt;a href="http://www.thedailybeast.com/who-s-following-whom-.html" title="Who's Following Whom?" target="_blank"&gt;Digital 100: Who&amp;#8217;s Following Whom?&lt;/a&gt; - A network visualization of how Newsweek&amp;#8217;s list of influential people in the digital space interact with each other on Twitter. &lt;/p&gt;
&lt;p class="p1"&gt;&lt;a href="http://www.thedailybeast.com/newsweek/2012/07/05/obamacare-it-s-cheaper.html" title="Obamacare: It's Cheaper" target="_blank"&gt;Obamacare: It’s Cheaper!&lt;/a&gt; - I like to call these &amp;#8220;Story Visualizations&amp;#8221; - visual presentations of stories that could run as a list or as text, but are much more interesting visually. Matt DeLuca and I did a side-by-side on how Obamacare would affect different age groups&amp;#8217; healthcare spending.&lt;/p&gt;
&lt;p class="p1"&gt;&lt;a href="http://www.thedailybeast.com/articles/2012/07/30/2012-olympics-the-latest-medal-tally.html" title="2012 Olympics: The Latest Medal Tally" target="_blank"&gt;2012 Olympics: The Latest Medal Tally&lt;/a&gt; - We had a live-updating Olympic Medal Count, (with a snazzy sortable table that &lt;a href="http://newsbeastlabs.tumblr.com/post/35855193457/a-defining-characteristic-of-this-election-cycle" title="Scroll down to the bottom where I talk about the table!" target="_blank"&gt;I&amp;#8217;ve written about before&lt;/a&gt;) that I worked on with our awesome intern Sarah Hedgecock. We also did a version of it for our right rail (sidebar).&lt;/p&gt;
&lt;p class="p1"&gt;&lt;a href="http://www.thedailybeast.com/newsweek/2012/07/14/london-s-olympic-transformation-city-sites-in-2003-and-2012.html" title="Interactive Map: Londons Olympic Transformation" target="_blank"&gt;Interactive Map: London’s Olympic Transformation&lt;/a&gt; - The Olympic Park rose from the rust. Sarah and I also did a satellite view before and after interactive that included a bunch of info on the star-chitect buildings.&lt;/p&gt;
&lt;p class="p1"&gt;&lt;a href="http://www.thedailybeast.com/articles/2012/07/24/interactive-map-the-us-shooting-epidemic.html" title="Interactive Map: The U.S. Shooting Epidemic" target="_blank"&gt;Interactive Map: The U.S. Shooting Epidemic&lt;/a&gt; - Following the Aurora shooting, Brian Abelson and I made an interactive map of multiple-victim shootings since 2005 and asked readers to respond with their memories. We published a selection of the reader responses &lt;a href="http://www.thedailybeast.com/articles/2012/08/06/interactive-readers-memories-of-u-s-shootings.html" title="Reader responses" target="_blank"&gt;here&lt;/a&gt;. The full spreadsheet list is &lt;a href="https://docs.google.com/spreadsheet/ccc?key=0At5DmgJ01T78dGxMc0Z2SlRud0FFclVORGdnWGI5emc#gid=0" title="Full spreadsheet of shooting memories" target="_blank"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p class="p1"&gt;&lt;a href="http://www.thedailybeast.com/articles/2012/07/13/as-income-inequality-widens-rich-presidential-candidates-dominate.html" title="http://www.thedailybeast.com/articles/2012/07/13/as-income-inequality-widens-rich-presidential-candidates-dominate.html" target="_blank"&gt;As Income Inequality Widens, Rich Presidential Candidates Dominate&lt;/a&gt; - Lauren Streib and I worked on a chart (she did all the numbers), showing presidential income over the years. I remember this one chart taking four hours from start to finish for some reason&amp;#8230;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;a href="http://www.thedailybeast.com/articles/2012/08/15/big-guns-inside-the-national-rifle-association-leadership.html" title="Big Guns Inside the National Rifle Association Leadership" target="_blank"&gt;Big Guns Inside the National Rifle Association Leadership&lt;/a&gt; - Who&amp;#8217;s leading the NRA? I worked on a project with three colleagues Caitlin Dickson, Eliza Shapiro and Kevin Fallon on the NRA&amp;#8217;s leadership. They dug through 990 forms and put together small profiles of the people at the top. We put it together in mosaic-style presentation. Normally this type of story would be a gallery format but since it&amp;#8217;s not picture-based, we decided to create something more conducive to reading a lot of text.&lt;/p&gt;
&lt;p class="p1"&gt;&lt;a href="http://www.thedailybeast.com/articles/2012/09/14/interactive-daily-beast-super-pac-app-election-ad-tracker.html" title="Interactive: Daily Beast Election Ad Tracker" target="_blank"&gt;SuperPAC App Election Ad Interactive&lt;/a&gt; - We partnered with the Super PAC App, an iPhone app that would identify political advertisements on TV and give you information about that group, such as how much money it was spending this election and articles about them. We made a web interface to their data to provide readers with more context for outside spending groups.&lt;/p&gt;
&lt;p class="p1"&gt;&lt;a href="http://www.thedailybeast.com/articles/2012/09/15/interactive-map-who-s-protesting-where.html" title="Interactive Map: Whos Protesting Where" target="_blank"&gt;Interactive Map: Who&amp;#8217;s Protesting Where?&lt;/a&gt; - When the Middle East erupted in protests in response to an anti-Muslim video uploaded to YouTube, Eliza Shapiro and I put together a visual guide with information on each protest as well as contextual information on each country. It was an interesting map to built since we had both point and polygon layers to deal with for hover states. As with all of our interactive maps, we used CartoDB.&lt;/p&gt;
&lt;p class="p1"&gt;&lt;a href="http://www.thedailybeast.com/articles/2012/09/17/a-close-look-at-some-of-obama-s-bundlers.html" title="Obama Bundlers" target="_blank"&gt;Obama&lt;/a&gt; and &lt;a href="http://www.thedailybeast.com/articles/2012/09/28/meet-romney-s-bundlers.html" title="Romney Bundlers" target="_blank"&gt;Romney&amp;#8217;s&lt;/a&gt; Bundlers - If bundlers had baseball cards, this is what they&amp;#8217;d look like.We took a look at the biggest bundlers for each candidate. Collect &amp;#8216;em all.&lt;/p&gt;
&lt;p class="p1"&gt;&lt;a href="http://www.thedailybeast.com/articles/2012/09/17/the-rise-of-the-political-non-profit.html" title="The Rise of the Political Non-profit" target="_blank"&gt;The Rise of the Political Non-Profit&lt;/a&gt; - How so-called &amp;#8220;Dark Money&amp;#8221; was influencing the 2012 election was one of the themes in a three-part series John Avlon and I wrote called the Super PAC Economy. This animated timeline overlays non-profit political expenditures and significant court decisions (Citizens United and lesser-known decisions) that determined what role these groups could play in politics.&lt;/p&gt;
&lt;p class="p1"&gt;&lt;a href="http://www.thedailybeast.com/articles/2012/09/19/the-dark-money-shuffle-a-map.html" title="The Dark Money Shuffle" target="_blank"&gt;The Dark Money Shuffle&lt;/a&gt; - Also in that series, we worked with Robert Maguire of the Center for Responsive Politics who had been compiling a database of grants that non-profits gave to each other. For the first time, we diagrammed this opaque world of money transfers that is only visible by manually going through hundreds of IRS forms. &lt;a href="http://www.thedailybeast.com/articles/2012/09/19/the-dark-money-shuffle.html" title="Dark Money Shuffle" target="_blank"&gt;Full article&lt;/a&gt;. &lt;/p&gt;
&lt;p class="p1"&gt;&lt;a href="http://newsbeastlabs.thedailybeast.com/2012/10/election-rail-iframe/index.html" title="Election Right Rail" target="_blank"&gt;Election Right Rail&lt;/a&gt; - Showing the latest polls from battleground states, how those states voted historically, median income, and latest unemployment figures, our politics sidebar was full of context. It no longer lives anywhere on our site but you can see a standalone version how it looked on the eve of the election through the linked title.&lt;/p&gt;
&lt;p class="p1"&gt;&lt;em&gt;Note: We did all of these projects before starting this tumblr. You&amp;#8217;ll find write-ups for the projects that follow but if you want to know how we built any of the stuff above, send me a message at @mhkeller.&lt;/em&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;a href="http://www.thedailybeast.com/articles/2012/10/03/presidential-debate-interactive.html" title="Debate Dashboard" target="_blank"&gt;Debate Dashboard and Bingo&lt;/a&gt; - Brian, Sam, Vitaly Korenkov (one of our awesome developers) conceived of a great debate night dashboard. We had a livestream, a live chat with our commentators and a poll from Urtak, which is a polling platform that lets you pose simple yes/no/maybe questions to readers. It also lets readers submit questions they want other people to answer so it&amp;#8217;s a good back and forth between questions we&amp;#8217;re interested in and what our audience is interested in. We&amp;#8217;re often into giving our readers a voice on the site so we liked it a lot. I came in during the last few hours before we were going to go live (a.ka. after all the hard work was done) and added a bingo card. The coolest part about it is the Bingo validation. The card checks how many you have in a row vertically, horizontally, and diagonally and tells you how many you need to win. &lt;a href="http://newsbeastlabs.tumblr.com/post/34105531195/covering-the-debates-when-we-began-thinking-about" title="Read more" target="_blank"&gt;NewsBeast Labs post&lt;/a&gt;.&lt;/p&gt;
&lt;p class="p1"&gt;&lt;a href="http://www.thedailybeast.com/articles/2012/10/19/ground-game-obama-campaign-opens-up-a-big-lead-in-field-offices.html" title="Ground Game" target="_blank"&gt;Ground game: Obama Campaign Opens Up Big Lead in Field Offices&lt;/a&gt; - The airwave battle was being covered left and right, but we wanted to know what was happening on the ground. We scraped the two campaigns&amp;#8217; websites to map out their local HQs nationwide and found a big discrepancy between the two camps. In Ohio, for instance, Obama had a presence in so many counties where Romney didn&amp;#8217;t that 10 percent of the state&amp;#8217;s population lived in a county where the only volunteer center was an Obama HQ.&lt;/p&gt;
&lt;p class="p1"&gt;Technical note: We used CartoDB again for this map and it was a huge help. In the accompanying article, we ran interactive maps of Florida, Ohio, and Virginia. These separate maps required no real extra programming or map making since CartoDB builds your map by querying a database. By setting our map query to &amp;#8216;SELECT * from national_map WHERE state = FL&amp;#8217;  we had a local map in minutes that we could swap out for another state if needed, which indeed ended up happening. &lt;a href="http://newsbeastlabs.tumblr.com/post/34109019268/tracking-the-presidential-groundgame-as-the-two" title="Read more" target="_blank"&gt;NewsBeast Labs post&lt;/a&gt;.&lt;/p&gt;
&lt;p class="p1"&gt;&lt;a href="http://www.thedailybeast.com/articles/2012/10/26/interactive-hate-the-great-obama-loathing-canon.html" title="Interactive Hate: The Great Obama-Loathing Canon" target="_blank"&gt;Interactive Hate: The Great Obama-Loathing Canon&lt;/a&gt; - Matt DeLuca and I teamed up again to solve the perennial problem of how do you present a lot of information to the reader in a way they can digest in bites that make sense. This time, we presented over a hundred anti-Obama books in a mosaic that you can filter down to different subject matters. &lt;a href="http://newsbeastlabs.tumblr.com/post/35211240736/a-couple-of-weeks-ago-we-had-a-small-project-that" title="Obama books" target="_blank"&gt;NewsBeast Labs Post&lt;/a&gt;.&lt;/p&gt;
&lt;p class="p1"&gt;&lt;a href="http://www.havingtroublevoting.com/" title="Having Trouble Voting" target="_blank"&gt;HavingTroubleVoting.com&lt;/a&gt; - We did an experiment on election day asking our readers, or anyone really, if they were having trouble voting, and if so, what kind of trouble. We plotted the responses on a map below and color-coded the markers based on the type of problem. We partnered with &lt;em&gt;Mother Jones&lt;/em&gt; on it to help us go through the responses to find patterns and to contact people to tell their story. Our own reporters used the database in stories about massive lines and machine malfunctions. We&amp;#8217;re totally honored and floored when CJR named it No. 2 in their &lt;a href="http://www.cjr.org/between_the_spreadsheets/must-reads_of_2012_interactive.php" title="Must Reads" target="_blank"&gt;Must-Read Interactives of 2012&lt;/a&gt;! More about it in our &lt;a href="http://newsbeastlabs.tumblr.com/post/35207500178/havingtroublevoting-com-is-one-of-our-latest" title="Read more" target="_blank"&gt;NewsBeast Labs post.&lt;/a&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;a href="http://www.thedailybeast.com/articles/2012/11/06/map-election-2012-electoral-college-results-state-by-state.html" title="Election 2012" target="_blank"&gt;Election Night Interactive Map and Dashboard&lt;/a&gt; - A lot of teamwork went into our election night coverage from the development team, social, design&amp;#8230; the list goes on. We took over our home page on election night with video commentary, a live updating tally, a live chat, article updates and more things that you could probably put a &amp;#8220;live&amp;#8221; prefix in front of. The map lives on in the linked title, a screenshot lives in our &lt;a href="http://newsbeastlabs.tumblr.com/post/35157495162/for-our-election-coverage-we-wanted-to-show-a-mix" title="Read more" target="_blank"&gt;NewsBeast Labs&lt;/a&gt; post about it.&lt;/p&gt;
&lt;p class="p1"&gt;&lt;a href="http://www.thedailybeast.com/articles/2012/11/03/it-was-like-a-war-zone-hurricane-ravaged-staten-island-reels.html" title="It Was Like a War Zone: Hurricane-Ravaged Staten Island Reels" target="_blank"&gt;‘It Was Like a War Zone’: Hurricane-Ravaged Staten Island Reels&lt;/a&gt; - In the wake of the trauma caused by Hurricane Sandy, we did a map of Staten Island victims. It shows how many of the fatal tragedies were concentrated on the east side of the island.&lt;/p&gt;
&lt;p class="p1"&gt;&lt;a href="http://www.thedailybeast.com/articles/2012/11/15/not-so-super-pacs-2012-s-winners-and-losers.html" title="Not-So-Super PACs" target="_blank"&gt;Not-So-Super PACs: 2012&amp;#8217;s Winners and Losers&lt;/a&gt; - DeLuca and I teamed up again to produce this tally of who made good investments this election cycle. There&amp;#8217;s a long post about it, including some failed versions in our &lt;a href="http://newsbeastlabs.tumblr.com/post/35855193457/a-defining-characteristic-of-this-election-cycle" title="Read more" target="_blank"&gt;NewsBeast Labs post&lt;/a&gt;. &lt;/p&gt;
&lt;p class="p1"&gt;&lt;a href="http://www.thedailybeast.com/articles/2012/12/06/2012-interactive-holiday-gift-guide-tech-fashion-and-more.html" title="2012 Interactive Holiday Gift Guide: Tech, Fashion and More" target="_blank"&gt;Interactive Holiday Gift Guide&lt;/a&gt; - Lizzie Crocker, Isabel Wilkinson and I help you find out what sub-culture your friends might belong to in this gift guide flow chart.&lt;/p&gt;
&lt;p class="p1"&gt;&lt;a href="http://www.thedailybeast.com/articles/2012/12/17/interactive-sound-off-on-gun-control.html" title="Own a gun?" target="_blank"&gt;Own a Gun? Tell Us Why?&lt;/a&gt; - December brought another terrible shooting and has caused much thought over the state of gun laws. We wanted to hear from rational people on both sides of the debate by lettings readers complete the sentences, &amp;#8220;I own a gun because&amp;#8230;&amp;#8221; or &amp;#8220;I don&amp;#8217;t own a gun because&amp;#8230;&amp;#8221;. In three days, we had over 1,300 responses that represented very civil remarks from each group, for the most part. We &lt;a href="http://www.thedailybeast.com/articles/2012/12/22/the-best-of-our-gun-debate-readers-weigh-in-on-owning-firearms.html" title="Analysis" target="_blank"&gt;analyzed the responses and did a state-by-state breakdown&lt;/a&gt; of the common themes. We used some interesting algorithmic clustering to find these patterns so expect a write-up soon. For now, read &lt;a href="http://newsbeastlabs.tumblr.com/post/38245079786/our-last-wednesday-workshop-focused-in-part-on" title="Read more" target="_blank"&gt;the post on how the project was born and how we collected the responses&lt;/a&gt;.&lt;/p&gt;</description><link>http://newsbeastlabs.tumblr.com/post/39052695430</link><guid>http://newsbeastlabs.tumblr.com/post/39052695430</guid><pubDate>Fri, 28 Dec 2012 13:12:20 -0500</pubDate><category>ddj</category><category>year in review</category><category>2012</category><category>interactives</category><category>journalism</category><category>election 2012</category><category>politics</category><category>newsbeastlabs</category><category>newsweek</category><category>daily beast</category></item><item><title>Our last Wednesday Workshop focused, in part, on ways to get...</title><description>&lt;img src="http://25.media.tumblr.com/e3fcefd2d7ea103b159b21414dbd3b6b/tumblr_mf8ttcnXXQ1riqdl6o1_500.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;Our last Wednesday Workshop focused, in part, on ways to get readers more involved in our stories. When news of last week’s awful shooting reached us, we wanted to open up discussion on the role of guns in America. On our Tumblr &lt;a href="http://newsweek.tumblr.com/post/37926013875/q-how-do-you-want-nwktumblr-to-cover-the-shooting" title="NWK Tumblr" target="_blank"&gt;we asked readers how the shooting should be covered&lt;/a&gt; and many requested we steer clear of the politics and instead opt for a genuine discussion on gun control.&lt;/p&gt;
&lt;p&gt;Gun control is a complicated issue in this country and nuanced issues can be at odds with the tools of data visualization. That is to say, data visualization and data reporting are often marked by being extremely comprehensive and boiling that comprehensiveness into one easily understandable image, graph, or layout. Doing anything comprehensive on an issue as complex as guns in our society, on deadline no less, would be tricky, and we’re not ones to put data out there that’s misleading or inconclusive.&lt;/p&gt;
&lt;p&gt;But the other tool of digital journalism is being able to present a great deal of information in one place, which &lt;em&gt;does&lt;/em&gt; work for a nuanced subject. We wanted to engage our readers to tell the story of guns in America in a way that showed the issue’s complexity. We posed the question as “Why do you own a gun?” or “Why don’t you own a gun?” On our site we, we set up two forms that let readers easily complete the sentence “I &lt;em&gt;own&lt;/em&gt; a gun because…” or “I &lt;em&gt;don’t own&lt;/em&gt; a gun because…” and displayed their responses for readers to sift through.&lt;/p&gt;
&lt;p&gt;It’s like the digital equivalent of Man on the Street reporting, where you go and ask people on the street their opinions on an issue in the news and write up their quotes in an article. Let’s call this a Man on the Internet story, or to be gender neutral, Person on the Internet (Internet Vox Pop maybe? I’m open to suggestions).&lt;/p&gt;
&lt;p&gt;We published the article Monday evening and less than 24 hours later we have over 900 responses — over 500 from gun owners and over 400 from non-gun owners. We have some thoughts on how the two sides explain their position but, for now, we’ll let you read through and absorb it on your own.&lt;/p&gt;
&lt;p&gt;We’re collecting and categorizing the responses, so look for that article on the Beast later in the week.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Under the hood&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;We used a customized Google Form to handle the response collections. &lt;a href="http://www.immersionmedia.com/blog/customizing-and-styling-google-forms/" title="Custom Google Form" target="_blank"&gt;This is a nice tutorial&lt;/a&gt; on how to embed Google Forms into your site with custom styles and functionality. &lt;/p&gt;
&lt;p&gt;We’ve used custom Google Forms before, on our other shooting project actually, for a &lt;a href="http://www.thedailybeast.com/articles/2012/07/24/interactive-map-the-us-shooting-epidemic.html" title="US Shooting epidemic" target="_blank"&gt;newsapp that lets readers put in their address&lt;/a&gt; and it finds news accounts of multiple-victim shootings near them. A Google Form then asks what they remember about the incident and collects their responses in a spreadsheet. We published some of &lt;a href="http://www.thedailybeast.com/articles/2012/08/06/interactive-readers-memories-of-u-s-shootings.html" title="Shooting Memories" target="_blank"&gt;the most moving responses&lt;/a&gt; that I think is worth a read.&lt;/p&gt;
&lt;p&gt;For this project, though, I was running into trouble putting in two custom forms on one page. Since I only had a day to build this, I ended up sequestering the two forms to separate HTMl pages and iframe-ing them into my main page. This was nice because it ensured the two forms didn’t interfere with each other and since the pages were all on the same domain, I didn’t have any cross-origin issues and didn’t loose any functionaity — when you submit one form, that action bubbles up to it the parent frame and grays out the other form.&lt;/p&gt;
&lt;p&gt;I originally wanted to do something more animated similar to &lt;a href="http://www.nytimes.com/interactive/2008/11/04/us/politics/20081104_ELECTION_WORDTRAIN.html" title="NYT Election 2008" target="_blank"&gt;this seminal piece of crowdsourced dataviz from 2008&lt;/a&gt;. I like how its animation gives the project energy but it comes at the cost of not being able to scroll through the responses on your own. After some thinking, I couldn’t figure out a way to have both a sit-back-and-let-the-responses-flow experience and a I-want-to-dive-into-these-responses-and-scroll-through-them-all experience. The latter is obviously the more useful for the reader, so I went with that. The election interactive is also a bit different from this since most of the emotions on each line are of the same category, so it’s not really hiding anything by not letting you scroll. For our project, each response brings its own nuance to the debate so you don’t want to hide any of them. If you have any thoughts on how to improve the presentation, I’m at &lt;a href="http://www.twitter.com/mhkeller" title="@mhkeller" target="_blank"&gt;@mhkeller&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Brian had the great idea that we let this conversation be medium agnostic. So in the story dek we let people know they can continue the conversation on Twitter with the hashtags #IOwnAGunBecause or #IDontOwnAGunBecause. I built some hooks into our Underscore.js templates that let us add selected tweets to our spreadsheet and display them with a Twitter icon and a link to the original tweet. That way we could pull in interesting responses from elsewhere and flag them as such. You can look at the formatHelpers object in app.js to see how it checks for content in the Twitter column and adds the image and link if it finds something.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://newsbeastlabs.tumblr.com/post/37641296435/google-docs-miso-powered-apps-a-note-on" title="Google Docs + Miso-Powered Apps: a note on collaborative workflow" target="_blank"&gt;As I’ve written&lt;/a&gt;, I’m a big fan of &lt;a href="http://misoproject.com/dataset/" title="Dataset.js" target="_blank"&gt;Miso’s Dataset.js&lt;/a&gt;, and that’s what we’re using here to pull the responses in from our Google Form Spreadsheet. Contrary to my previous post, this app does work off of a live Google Doc. I know, blasphemous. For a few workflow reasons we weren’t able to have a script download our spreadsheets and put them on a server like we did for &lt;a href="http://www.havingtroublevoting.com" title="Having Trouble Voting" target="_blank"&gt;HavingTroubleVoting.com&lt;/a&gt; where we had both rate-limiting and privacy issues.&lt;/p&gt;
&lt;p&gt;That being said, we have been &lt;strong&gt;very closely&lt;/strong&gt; monitoring the app to make sure it doesn’t get rate-limited and it’s been fine so far. I have a few lines commented out in the code that point to where we’d put a local CSV of the responses, so if the app went down, it would be back up in a minute or so. We also made sure not to ask for any identifying information so we had no privacy concerns. Now that we have close to a thousand responses, though, we might switch to local files so that the page loads faster. If we could have set it up to download automatically, however, that would have been our first choice.&lt;/p&gt;
&lt;p&gt;One thing I added yesterday evening after we started getting a lot of comments was a way to filter by state. A lot of content can be overwhelming, so the more options you can give readers to drill down to a subset that might be more relevant to them, the more manageable the experience is and hopefully more engaging and memorable.&lt;/p&gt;

&lt;p&gt;-michael keller&lt;/p&gt;</description><link>http://newsbeastlabs.tumblr.com/post/38245079786</link><guid>http://newsbeastlabs.tumblr.com/post/38245079786</guid><pubDate>Tue, 18 Dec 2012 15:26:25 -0500</pubDate><category>gun control</category><category>crowdsourcing</category><category>journalism</category></item><item><title>Oh hey! Adweek’s Charlie Warzel wrote a story about our...</title><description>&lt;img src="http://25.media.tumblr.com/9b9354dbc630bcb7e57e66d04a5654b5/tumblr_mf14a1mfBs1riqdl6o1_500.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;Oh hey! Adweek’s Charlie Warzel wrote &lt;a href="http://www.adweek.com/news/technology/what-newsweeks-digital-future-will-look-145942" title="Adweek - This Is What Newsweek's Digital Future Will Look Like" target="_blank"&gt;a story about our team&lt;/a&gt;!&lt;/p&gt;</description><link>http://newsbeastlabs.tumblr.com/post/37912768146</link><guid>http://newsbeastlabs.tumblr.com/post/37912768146</guid><pubDate>Fri, 14 Dec 2012 11:25:00 -0500</pubDate><category>self-promotion</category><category>digital journalism</category><category>the daily beast</category><category>newsweek</category></item><item><title>Google Docs + Miso-Powered Apps: a note on collaborative workflow </title><description>&lt;p&gt;Working both collaboratively and efficiently on deadline, needless to say, is important. For our fastest-paced interactives and news apps, we&amp;#8217;ve come to use a combination of Google Spreadsheets and &lt;a href="http://misoproject.com/dataset/" title="Miso Project" target="_blank"&gt;Dataset.js&lt;/a&gt; from the Miso Project in a way that we&amp;#8217;ve come to really quite like. We figured we&amp;#8217;d share it with you here.&lt;/p&gt;
&lt;p&gt;Essentially, we use a Google Doc as a temporary database for our text or numeric data. When we go live, we download that data to a local CSV, change the path, and deploy.&lt;/p&gt;
&lt;p&gt;We&amp;#8217;ve used this workflow on the &lt;a href="http://www.thedailybeast.com/articles/2012/10/26/the-obama-haters-book-club-the-canon-swells.html" title="Obama Haters" target="_blank"&gt;Obama Haters Book Club&lt;/a&gt;, the sidebar to our election coverage page (which doesn&amp;#8217;t exist on our site anymore but which &lt;a href="http://newsbeastlabs.thedailybeast.com/2012/10/election-rail-iframe/index.html" title="Election Rail" target="_blank"&gt;looked like this&lt;/a&gt;), our &lt;a href="http://www.thedailybeast.com/articles/2012/09/28/meet-romney-s-bundlers.html" title="Romney Bundlers" target="_blank"&gt;Meet Romney&amp;#8217;s Bundlers&lt;/a&gt; interactive, a variant of it for &lt;a href="http://www.havingtroublevoting.com" title="Having Trouble Voting" target="_blank"&gt;HavingTroubleVoting.com&lt;/a&gt; (where we had a Google Form power a Google Spreadsheet) and the &lt;a href="http://www.thedailybeast.com/articles/2012/07/30/2012-olympics-the-latest-medal-tally.html" title="Olympic Medal Tally" target="_blank"&gt;Olympic Medal Tally&lt;/a&gt; among others. &lt;/p&gt;
&lt;p&gt;Note: This post is a bit more technical than usual.&lt;/p&gt;
&lt;p&gt;The first step is getting everyone to put the information they gather into a structured spreadsheet. Here&amp;#8217;s what the &lt;a href="http://newsbeastlabs.thedailybeast.com/nbl-files/files/2012/12/obama-covers.png" title="Spreadsheet picture" target="_blank"&gt;Obama bundlers spreadsheet looked like&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;From there, we &amp;#8220;Publish the spreadsheet&amp;#8221; from the File menu — the crucial step when running an app off of a Google Spreadsheet — and import the data into our app. The Dataset.js documentation has a very simple tutorial on that step: &lt;a href="http://misoproject.com/dataset/tutorials/googlespreadsheets"&gt;http://misoproject.com/dataset/tutorials/googlespreadsheets&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;With this setup, reporters can be writing text and the photography department can be adding links to images at the same time the interactive is being built. What&amp;#8217;s particularly great is an editor can edit the text in the spreadsheet and it will be piped into the interactive without his or her having to edit any HTML. The order of the rows can also be swapped if some elements need to appear before others on the page.&lt;/p&gt;
&lt;p&gt;Mother Jones&amp;#8217;s Tasneem Raja has written about this workflow as well, using Tabletop.js. &lt;a href="http://www.ire.org/blog/on-the-road/2012/09/21/behind-story-mother-jones-and-47-percent/" title="Tabletop.js" target="_blank"&gt;Her post&lt;/a&gt; is definitely worth a read. &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;So Why Dataset over Tabletop?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#8217;ve come to like Dataset.js over Tabletop.js for two main reasons. The first is that powering a live news app from a Google Spreadsheet can cause a lot of problems—so we download our data from the cloud onto our servers before going live. Dataset.js makes this transition really simple.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.twitter.com/jsvine.com" title="Jeremy Singer-Vine" target="_blank"&gt;Jeremy Singer-Vine&lt;/a&gt; at the Wall Street Journal &lt;a href="https://gist.github.com/3295633" title="Danger up ahead!" target="_blank"&gt;has written about the dangers of running live apps from Google Docs&lt;/a&gt; and he has a strong argument: 1) Google can rate-limit you, killing your live app; 2) If Google changes its API in the future your app may go offline; 3) Google can add extra data to your API request that can slow down your readers; 4) Sometimes you want to make a bunch of changes all at once, like add a complete row of information — with Google, incremental changes cell-by-cell are immediately reflected in the app, which will create broken elements until you&amp;#8217;ve finished a full row; 5) Security and data privacy — sometimes you have columns in your data that you want to use internally but shouldn&amp;#8217;t be public facing. We ran into this with HavingTroubleVoting.com where we collected ready contact information to later verify reports but we didn&amp;#8217;t want to make that info public to the world. &lt;/p&gt;
&lt;p&gt;By making a local CSV whose columns we&amp;#8217;re picking for public view, we solve a lot of these problems. We get the benefit of working collaboratively in development and can switch to something more archivable and robust for production. I have some other scripts that could be improved that will download a spreadsheet automatically and turn it into a clean CSV. If I can clean them up a bit we can post them as well. &lt;/p&gt;
&lt;p&gt;The second reason is Dataset.js gives your data a lot of functionality, such as the ability to group, query, and turn your columns into arrays (which is particularly useful &lt;a href="http://misoproject.com/dataset/examples/highstockandcsv.html" title="Dataset to Highcharts" target="_blank"&gt;for hooking it up to libraries like HighCharts&lt;/a&gt;). In fact, being able to hook up a Google Spreadsheet to your app is just an extra feature of Dataset.js — as the name suggests, it&amp;#8217;s built to work with data and it can do some &lt;a href="https://github.com/misoproject/dataset/wiki/How-Do-I...#wiki-bintime" title="Fancy fancy" target="_blank"&gt;fancy things&lt;/a&gt; regardless of whether you&amp;#8217;re working with a local CSV or a spreadsheet in the cloud. &lt;/p&gt;
&lt;p&gt;If you have any suggestions, I&amp;#8217;m at &lt;a href="http://www.twitter.com/mhkeller" title="@mhkeller" target="_blank"&gt;@mhkeller&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;-michael&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;</description><link>http://newsbeastlabs.tumblr.com/post/37641296435</link><guid>http://newsbeastlabs.tumblr.com/post/37641296435</guid><pubDate>Mon, 10 Dec 2012 11:01:26 -0500</pubDate><category>miso dataset</category><category>the miso project</category><category>dataset.js</category><category>google docs</category><category>google spreadsheets</category><category>news apps</category><category>newsapps</category><category>digital journalism</category></item><item><title>For the holidays, we wanted to make the normal gift guide idea a...</title><description>&lt;img src="http://25.media.tumblr.com/tumblr_meme2oxmUu1riqdl6o1_500.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;For the holidays, we wanted to make the normal gift guide idea a little more interesting. The answer was a flow chart that narrows down the type of person you’re shopping for and then suggests appropriate gifts for their particular sub-culture. &lt;a href="http://www.twitter.com/nymtwit" title="Lizzie Crocker" target="_blank"&gt;Lizzie Crocker&lt;/a&gt; and &lt;a href="http://www.twitter.com/IsabelWilkinson" title="Isabel Wilkinson" target="_blank"&gt;Isabel Wilkinson&lt;/a&gt; did a great job coming up with the categories like (Nostalgic Outdoorsman, The Closet ‘50 Shades’ Fan, Hipster Techie) and then Lizzie and I (Michael) put our heads together to make a (hopefully) witty flowchart. Our photo department headed by &lt;a href="http://www.twitter.com/marciaallert" title="Marcia Allert" target="_blank"&gt;Marcia Allert&lt;/a&gt; was also a huge help.&lt;/p&gt;
&lt;p&gt;There’s nothing fancy under the hood. The only semi-trick was our Daily Beast font family Titling isn’t always too legible at smaller sizes on the web. To fix that, we made the blue circles in Illustrator and exported them as PNGs. To do the hovers, you duplicate the image below your main image like this and make sure your image container is only tall enough to show one at a time: &lt;/p&gt;
&lt;p&gt;&lt;img alt="image" height="206" src="http://newsbeastlabs.thedailybeast.com/nbl-files/files/2012/12/gg-btn-02.png" width="117"/&gt;&lt;/p&gt;
&lt;p&gt;To do the hover then, your CSS is something like .img-class:hover{ background-position: 0 -102px;} The benefit to this is you don’t load a second picture when you hover so there’s no delay. This is a pretty standard way of doing this so it’s nothing revolutionary but for some reason you still see a lot of sites that have delays on their image hovers that would be better off using this technique.&lt;/p&gt;
&lt;p class="p1"&gt;&lt;strong&gt;Why not make the flowchart interactive too?&lt;/strong&gt;&lt;/p&gt;
&lt;p class="p1"&gt;We decided in favor of a static image for the flowchart as opposed to something interactive since I think the wittiness of flowcharts comes across in seeing how the possibilities flow from one another and the different results in choosing one adventure over another. Also, at the sake of sounding blasphemous, interactivity can be thought of as a last resort only when you can’t fit everything onto the screen at once, or doing so would work against a focused narrative. It’s much easier for readers to scan a page full of information and see how these options unfold, in my view, than it is for them to click 10+ times and only see the options that stem from their responses. &lt;/p&gt;
&lt;p class="p1"&gt;To continue the trend to show some shots from our failures, here’s a screenshot of the drafting process for the flowchart. We really wanted to work mud into it somewhere since it could have split off nicely with Adrenaline Junkie or Wee Ones (since kids love mud), but it didn’t quite work out. The second one is what we settled on.&lt;/p&gt;

&lt;p class="p1"&gt;&lt;img alt="Gift Guide Failure" height="248" src="http://newsbeastlabs.thedailybeast.com.s3.amazonaws.com/nbl-files/failures/2012/12/gift-guide/%20gift%20guide-01.png" width="500"/&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;img alt="Gift Guide Final" height="248" src="http://newsbeastlabs.thedailybeast.com.s3.amazonaws.com/nbl-files/files/2012/12/gift%20guide-02.png" width="500"/&gt;&lt;/p&gt;

&lt;p class="p1"&gt;-michael&lt;/p&gt;</description><link>http://newsbeastlabs.tumblr.com/post/37340141923</link><guid>http://newsbeastlabs.tumblr.com/post/37340141923</guid><pubDate>Thu, 06 Dec 2012 12:32:00 -0500</pubDate><category>holidays</category><category>holiday shopping</category><category>gift guide</category><category>daily beast</category><category>newsweek</category><category>presents</category><category>christmas</category></item><item><title>We recently gave a lesson to some editors and reporters about...</title><description>&lt;img src="http://24.media.tumblr.com/tumblr_meiwwra5zB1riqdl6o1_500.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;&lt;p class="p1"&gt;We recently &lt;a href="http://newsweek.tumblr.com/post/36762645384/were-giving-our-reporters-a-tweetdeck-demo-do"&gt;gave a lesson&lt;/a&gt; to some editors and reporters about how to use TweetDeck, the awesome Twitter-streaming product. We thought we’d publish our step-by-step walk-through here, both so our reporters could bookmark it for future reference and to show you all what we’re up to. Obviously it’s just the basics detailed below, aimed at first-time TweetDeck users. Maybe we’ll have a more advanced class down the road.&lt;/p&gt;
&lt;p class="p1"&gt;&lt;strong&gt;What is TweetDeck, and why might I want to use it?&lt;/strong&gt;&lt;/p&gt;
&lt;p class="p1"&gt;If you have a Twitter account already, you probably view and compose tweets through twitter.com. &lt;a href="https://tweetdeck.com/"&gt;Tweetdeck&lt;/a&gt; is a separate Twitter product that offers a few advantages to simply using twitter.com. The most obvious advantage is that streams tweets in near-real-time, as opposed to &lt;a href="https://twitter.com/"&gt;twitter.com&lt;/a&gt;, which only tells you when new tweets are available to be viewed (“12 new Tweets”). The second advantage is that you can view multiple columns of tweets, rather than just your own timeline. Other columns can be lists, searches, even other users’ timelines. We’ll get to all that below. &lt;/p&gt;
&lt;p class="p1"&gt;&lt;strong&gt;How to Setup TweetDeck:&lt;/strong&gt;&lt;/p&gt;
&lt;p class="p1"&gt;First, you’ll have to decide if you want to use the TweetDeck application for the desktop or TweetDeck for the web (i.e. in-browser). Tweetdeck for the web will live in a browser tab. The desktop application will be a separate application. Ries and I both use the desktop application. It’s not a huge deal which you choose— you can switch back and forth very easily.&lt;/p&gt;
&lt;p class="p1"&gt;&lt;em&gt;To setup the desktop app&lt;/em&gt;: Visit &lt;a href="http://www.tweetdeck.com/"&gt;tweetdeck.com&lt;/a&gt; and click the silver download button on the right. &lt;/p&gt;
&lt;p class="p1"&gt;&lt;em&gt;To use TweetDeck in your browser&lt;/em&gt;: visit &lt;a href="https://web.tweetdeck.com/"&gt;&lt;a href="https://web.tweetdeck.com/"&gt;https://web.tweetdeck.com/&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p class="p1"&gt;No matter which form (desktop or web browser) of TweetDeck you’ve chosen, the instructions from here on out are the same.&lt;/p&gt;
&lt;p class="p1"&gt;When you visit &lt;a href="https://web.tweetdeck.com/"&gt;&lt;a href="https://web.tweetdeck.com/"&gt;https://web.tweetdeck.com/&lt;/a&gt;&lt;/a&gt; or open the application for the first time, you’ll be asked to sign in with your TweetDeck account. Note that this is different from your Twitter account. So you’ll need to create a TweetDeck account. But don’t panic. You’ll only have to log-in to Tweetdeck once and it will keep you logged in (almost) forever (click the checkbox that says “keep me logged in”). However, just this first time, you’ll need to create an account. You can use the same email and password as you do for your Twitter account.&lt;/p&gt;
&lt;p class="p1"&gt;You’ll now be asked to add your Twitter Account— here is where you log in as you would on twitter.com. Remember, Tweetdeck can handle multiple Twitter accounts, but most of you will just have your personal account. &lt;/p&gt;
&lt;p class="p1"&gt;&lt;strong&gt;OK, it’s setup. Now what?&lt;/strong&gt;&lt;/p&gt;
&lt;p class="p1"&gt;Now that Tweetdeck is open, you’ll want to make some columns. Your far left column defaults to “Home,” which you’ll probably want to keep there as it is all the accounts you follow. This is the column you see at twitter.com when you’re logged in.&lt;/p&gt;
&lt;p class="p1"&gt;A good second column is “Interactions”— which you may know as the “Connect” screen on Twitter.com, which shows your @replies, etc.. To add a column for your interactions, click the circular button with a plus sign in the middle to add a new column. Then click “interactions” and select your account.  &lt;/p&gt;
&lt;p class="p1"&gt;You may also want to add lists, like say, the Cheat Sheet source list we created. This is a bit trickier, but will become more intuitive. &lt;/p&gt;
&lt;p class="p1"&gt;&lt;strong&gt;How to Add a List as a New Column in Tweetdeck:&lt;/strong&gt;&lt;/p&gt;
&lt;p class="p1"&gt;1. Go to &lt;a href="https://twitter.com/"&gt;twitter.com&lt;/a&gt; in your browser. Log in to your personal Twitter account.&lt;/p&gt;
&lt;p class="p1"&gt;2. Find The Daily Beast on Twitter (&lt;a href="https://twitter.com/thedailybeast"&gt;&lt;a href="https://twitter.com/thedailybeast"&gt;https://twitter.com/thedailybeast&lt;/a&gt;&lt;/a&gt;). Click the “Lists” link on the left. Scroll down and click on “CheatSheet”. You should find yourself at: &lt;a href="https://twitter.com/thedailybeast/cheatsheet"&gt;&lt;a href="https://twitter.com/thedailybeast/cheatsheet"&gt;https://twitter.com/thedailybeast/cheatsheet&lt;/a&gt;&lt;/a&gt;. &lt;/p&gt;
&lt;p class="p1"&gt;3. Click the Subscribe button on the left. &lt;/p&gt;
&lt;p class="p1"&gt;4. Go back to Tweetdeck. Click the plus button to add a new column. Go to “Lists”. Find and click on “CheatSheet” on the left and then click the “Add column” button. &lt;/p&gt;
&lt;p class="p1"&gt;&lt;em&gt;Note:&lt;/em&gt; You can subscribe to as many lists as you like, and they obviously can be lists made by other users (not just @thedailybeast). You can also create your own lists. &lt;/p&gt;
&lt;p class="p1"&gt;The third type of column you may want to have is a simple &lt;strong&gt;search&lt;/strong&gt; column. Say you want to see what people are tweeting about Sandy. The best way to do this is to follow the hashtag #Sandy. Again, click the add column button, now go to search and type in #Sandy. Click add column, and you should be all set. &lt;/p&gt;
&lt;p class="p1"&gt;&lt;strong&gt;Organizing Your Columns&lt;/strong&gt;&lt;/p&gt;
&lt;p class="p2"&gt;The TweetDeck desktop application can display any number of columns from 3 to as many as you can fit on your monitor(s). To re-order your columns, click the “Columns” bar in the top middle of the application. You’ll see the title of your columns displayed in order. You can drag and drop them in to a desired order by clicking and holding on the 6 white squares on the right side of any column box. &lt;/p&gt;
&lt;p class="p2"&gt;&lt;img alt="image" src="http://content.screencast.com/users/SSchlinkert/folders/Jing/media/a1348884-1c9e-473b-b150-0207d2042039/00000076.png" width="500"/&gt;&lt;/p&gt;
&lt;p class="p1"&gt;Again, if you need help with any of this let us know.&lt;/p&gt;

&lt;p class="p1"&gt;-Sam&lt;/p&gt;&lt;/p&gt;</description><link>http://newsbeastlabs.tumblr.com/post/37205760602</link><guid>http://newsbeastlabs.tumblr.com/post/37205760602</guid><pubDate>Tue, 04 Dec 2012 15:43:00 -0500</pubDate><category>twitter</category><category>tweetdeck</category><category>lessons</category></item><item><title>A defining characteristic of this election cycle was Super PACs...</title><description>&lt;img src="http://25.media.tumblr.com/tumblr_mdkh3nfKyh1riqdl6o1_500.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;A defining characteristic of this election cycle was Super PACs and the hundreds of millions of dollars outside groups were spending to influence races. Now that it’s all over, we wanted to see which outside groups spent their money on succssful races and which did not. The result was our interactive &lt;a href="http://www.thedailybeast.com/articles/2012/11/15/not-so-super-pacs-2012-s-winners-and-losers.html" title="Not-so-SuperPacs" target="_blank"&gt;Not-So-Super PACs: 2012’s Winners and Losers&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Super PACs abounded this cycle. So instead of trying to document and display all of them, we focused the narrative on how well the biggest spenders and their donors fared. To execute it, we used &lt;a href="http://www.opensecrets.org/" title="OpenSecrets.org" target="_blank"&gt;Center for Responsive Politics&lt;/a&gt; anaylsis of FEC data to find how much each PAC had spent so far in each race and then manually went through and coded each race whether the outcome was in line with or against the PAC’s interest. Then we added everything up.&lt;/p&gt;
&lt;p&gt;V&lt;strong&gt;isualizing it &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;This idea went through a few iterations before settling on what you see above. For a while, we’ve been wanting to use a tower graphic template - &lt;a href="http://www.nytimes.com/interactive/2012/10/30/nyregion/hurricane-sandys-aftermath.html" title="Tower Graphic NYT" target="_blank"&gt;one of those vertical scroll layouts with a sticky table of contents&lt;/a&gt; - that I built a couple of months ago but it never seems to work out. This time, after thinking about all of the detail we wanted to display we thought bigger.&lt;/p&gt;
&lt;p&gt;If you’re trying to visualize money flows, Sankey lines are a go-to. ProPublica did &lt;a href="http://www.propublica.org/special/a-tangled-web" title="Tangled Web ProPublica" target="_blank"&gt;a great one&lt;/a&gt; showing overlapping Super PAC expenditures and you see them &lt;a href="http://www.nytimes.com/interactive/2012/08/20/business/economy/what-happened-to-mortgage-modifications.html?ref=economy" title="NYT Sankey" target="_blank"&gt;as flat graphics&lt;/a&gt; too. They show direcionality and volume = great for money.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Getting the right data&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Money was flowing from donors to PACs and then to races, so we used the JSON structure that D3 lays out for its &lt;a href="http://bl.ocks.org/1062288" title="D3 Force" target="_blank"&gt;network layouts&lt;/a&gt; (and &lt;a href="http://bost.ocks.org/mike/sankey/" title="Sankey D3" target="_blank"&gt;Sankey&lt;/a&gt;) visualizations. You have a list of nodes (People and PACs) and a list of node to node links (X person gave $Y to Z PAC). We were working collaboratively in Google Docs so were able to do some formulas that would print out or data structure in JSON as we were editing the document. Very handy in case you need to correct any numbers or name spellings.&lt;/p&gt;
&lt;p&gt;Our D3 visualization was a failure.&lt;a href="http://newsbeastlabs.thedailybeast.com/nbl-files/failures/super-pac-d3-sankey/index.html" target="_blank"&gt;&lt;img alt="Sankey Fail" height="350" src="http://newsbeastlabs.thedailybeast.com/nbl-files/failures/super-pac-d3-sankey/screenshots/d3-fail.png" width="500"/&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://newsbeastlabs.thedailybeast.com/nbl-files/failures/super-pac-d3-sankey/index.html" title="Sankey Fail, bummer... or is it?" target="_blank"&gt;Here’s a link to the interactive version&lt;/a&gt; (yes, it’s in the “failures” folder). As you can see, there were too many races to fit on the screen and the dollar amounts in some races were so high that they dwarfed everything else. So showing each race in the Sankey was out. &lt;/p&gt;
&lt;p&gt;This led to Sankey Idea #2.&lt;/p&gt;
&lt;p&gt;&lt;img alt="Sankey Sketch" height="350" src="http://newsbeastlabs.thedailybeast.com/nbl-files/failures/super-pac-d3-sankey/screenshots/sankey-sketch.png" width="500"/&gt;&lt;/p&gt;
&lt;p&gt;We connected photos of the donors to the PACs, showed the percentage of succesful funds, and then put the races in a table down below. The photos were very useful because you can quickly understand that money is coming from a person and going somewhere. If we just had text, I think, without photos, it would be less clear and have less of a personality. Someone remarked that the lines almost form bodies and arms that reach out to touch Super PACs. It’s interesting to see visualized data combined with photography work out to tell a story like that.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Under the hood&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;We used Raphael to draw the lines, which was an improvement from D3 since we do indeed support Internet Explorer 8. We tweaked Al Shaw’s &lt;a href="http://www.propublica.org/nerds/item/untangling-a-web-of-fec-data" title="Untangling a web" target="_blank"&gt;Sankey line&lt;/a&gt; from Tom Counsell’s Sankey library to make them span vertically instead of left to right. Here’s a jsFiddle of &lt;a href="http://jsfiddle.net/Jd6tk/" title="Sankey Fiddle" target="_blank"&gt;the code to draw the line&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The table uses &lt;a href="http://isotope.metafizzy.co" title="Isotope.js" target="_blank"&gt;Isotope.js&lt;/a&gt; for its animated sorting, which is snazzy but I also think does help make tabular data more understandable. Instead of clicking on a column header and everything resorts in a flash, you can see how dramatically different rows vary from view to view. It’s also nice because you can do filtering. So without much code you have a filterable, sortable table. It also saves a step of turning the object data into arrays for sorting. I’ve been wanting to add those ascending / descending arrows for a while to our tables so this was a good time for that.&lt;/p&gt;
&lt;p&gt;This table will probably become our first stand-alone NewsBeast Labs plugin since we’ve been using it pretty frequently. That’s pretty cool because five months ago we didn’t have any interactive news code and now we’ve done enough projects that we can see what’s worked, what functionality we like and can wrap it all up into something more robust and reusable, which will make our future development that much faster. &lt;/p&gt;
&lt;p&gt;-michael&lt;/p&gt;</description><link>http://newsbeastlabs.tumblr.com/post/35855193457</link><guid>http://newsbeastlabs.tumblr.com/post/35855193457</guid><pubDate>Fri, 16 Nov 2012 14:48:00 -0500</pubDate><category>ddj</category><category>sankey</category><category>election2012</category><category>datavis</category><category>data visualization</category><category>super pacs</category><category>money</category><category>adelson</category><category>daily beast</category><category>newsbeastlasbs</category><category>newsweek</category></item><item><title>latimes:

That was fun.

News GIFs! We like this.</title><description>&lt;img src="http://24.media.tumblr.com/tumblr_md4t3bTUle1qzss4xo1_500.gif"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;&lt;a class="tumblr_blog" href="http://latimes.tumblr.com/post/35213167647/that-was-fun"&gt;latimes&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;a href="http://graphics.latimes.com/2012-election-results-national-map/#county"&gt;That was fun.&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;News GIFs! We like this.&lt;/p&gt;</description><link>http://newsbeastlabs.tumblr.com/post/35213981494</link><guid>http://newsbeastlabs.tumblr.com/post/35213981494</guid><pubDate>Wed, 07 Nov 2012 14:23:11 -0500</pubDate></item><item><title>A couple of weeks ago we had a small project that uses a stack...</title><description>&lt;img src="http://25.media.tumblr.com/tumblr_mcisnlXvut1riqdl6o1_500.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;&lt;a href="http://www.thedailybeast.com/articles/2012/10/26/interactive-hate-the-great-obama-loathing-canon.html" title="Obama Hate Club" target="_blank"&gt;A couple of weeks ago we had a small project&lt;/a&gt; that uses a stack we’ve come to like. The project was an interactive collage displaying just under a hundred books that take a somewhat negative view of the president, to put it lightly. With so many books we wanted a way for people to filter the list to see an amount that was more easily digestible. Matthew DeLuca separated them out into helpful categories like “Economy” and “Dangerous Radical”. You can hover over them to see an excerpt if you’re so inclined. We hope you like it.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Under the hood&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;We used the &lt;a href="http://isotope.metafizzy.co/" title="Isotope" target="_blank"&gt;Isotope library&lt;/a&gt;, which we’ve used before in both &lt;a href="http://www.thedailybeast.com/articles/2012/09/28/meet-romney-s-bundlers.html" title="Isotope" target="_blank"&gt;similar layouts&lt;/a&gt; and with sortable &lt;a href="http://www.thedailybeast.com/articles/2012/07/30/2012-olympics-the-latest-medal-tally.html" title="Medal count" target="_blank"&gt;tables&lt;/a&gt;, to handle the animation and filtering. We used the Miso Dataset library (more on that in a forthcoming post) to assemble the data in a spreadsheet so multiple people could work on it simultaneously and editors could easily access the copy. When everything was ready we downloaded it to a local csv and went from there. It’s a workflow that has worked well on projects like these.&lt;/p&gt;

&lt;p&gt;-michael&lt;/p&gt;</description><link>http://newsbeastlabs.tumblr.com/post/35211240736</link><guid>http://newsbeastlabs.tumblr.com/post/35211240736</guid><pubDate>Wed, 07 Nov 2012 13:28:00 -0500</pubDate><category>obama</category><category>daily beast</category><category>interactives</category><category>miso dataset</category><category>bocoup</category><category>election2012</category></item><item><title>HavingTroubleVoting.com is one of our latest projects to come...</title><description>&lt;img src="http://24.media.tumblr.com/tumblr_md36y9KBtn1riqdl6o1_r1_500.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;&lt;a href="http://www.havingtroublevoting.com" title="Having Trouble Voting?" target="_blank"&gt;HavingTroubleVoting.com&lt;/a&gt; is one of our latest projects to come out of &lt;a href="http://www.thedailybeast.com/election.html" title="Daily Beast Election" target="_blank"&gt;our election coverage&lt;/a&gt;. It was born when fellow reporter, &lt;a href="http://twitter.com/aliyarrow" title="@aliyarrow" target="_blank"&gt;Allison Yarrow&lt;/a&gt;, whom I (Michael) sit across from, was talking about how we should do something to make voting issues fascinatingly interesting and digital. A Google Form, some reading about issues facing voters, and some CSS media calls later, we had a mobile-friendly submission form tied to a Leaflet map. &lt;/p&gt;
&lt;p&gt;We partnered with Mother Jones who &lt;a href="http://www.motherjones.com/politics/2012/11/election-voter-suppression-map#4.00/38.93/-101.93" title="MotherJones" target="_blank"&gt;had a similar project&lt;/a&gt; since the task of verifying so many reports (at last count ~700) is quite a process. As you can see, we took a different approach with this one: the site has a separate URL and we built it completely outside of our CMS. We took inspiration from the question-URL-based Guardian US project IsBarackObamaThePresident.com. I’m a fan because it lends itself to be more creative and have a longer shelf-life than a story that goes into a regular CMS, has a timestamp and all that. It also gives itself a catchy url that’s easy to remember. &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Under the hood&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;We ran into some issues being rate-limited using the results of our  Google Form as a data source so I wrote in some middleware with R that pulls down the form, does the geocoding for new entries (to avoid geocoding rate-limits) and let me put it on S3 easily.&lt;/p&gt;
&lt;p&gt;Originally we were geo-locating the submissions based on browser location (since the main thinking was for mobile) but the percentage of successful tags was lower than expected. We also decided we would rather geocode based on the address people wrote in as opposed to their browser. I used a version of &lt;a href="https://gist.github.com/3834498" title="Gist" target="_blank"&gt;this geocoder&lt;/a&gt; to grab new entries every hour or so and make a new file to upload. &lt;/p&gt;
&lt;p&gt;We’re still going through the results and collecting more, if you have any, let us know! We’re pretty much always online at newsbeastlabs@gmail.com.&lt;/p&gt;
&lt;p&gt;-michael&lt;/p&gt;</description><link>http://newsbeastlabs.tumblr.com/post/35207500178</link><guid>http://newsbeastlabs.tumblr.com/post/35207500178</guid><pubDate>Wed, 07 Nov 2012 12:03:00 -0500</pubDate><category>election 2012</category><category>voting</category><category>problems</category><category>guardian news</category><category>geocoding</category><category>Google Docs</category><category>ddj</category></item><item><title>For our election coverage we wanted to show a mix of commentary...</title><description>&lt;img src="http://25.media.tumblr.com/tumblr_md3a1uxiOa1riqdl6o1_500.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;&lt;span&gt;&lt;a href="http://www.thedailybeast.com" title="The Daily Beast Election" target="_blank"&gt;For our election coverage&lt;/a&gt; we wanted to show a mix of commentary and &lt;/span&gt;&lt;span&gt;live information on the night of. Live commentary means video as well &lt;/span&gt;&lt;span&gt;as a chat component but the hardest part was delivering live data &lt;/span&gt;&lt;span&gt;results without having the page to refresh, which would interrupt the&lt;/span&gt;&lt;br/&gt;&lt;span&gt;video and be entirely too slow.&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;&lt;span&gt;To solve that problem, we’re using &lt;a href="https://github.com/CartoDB/real-time-map" title="CartoDB" target="_blank"&gt;CartoDB’s real-time election map&lt;/a&gt; &lt;/span&gt;&lt;span&gt;which lets us make changes to our data on the backend and have the &lt;/span&gt;&lt;span&gt;results fade in as results are pushed to our readers. We added a few &lt;/span&gt;&lt;span&gt;details such as number tallies that tick up one by one so readers can &lt;/span&gt;&lt;span&gt;see changes when a lot of states are called at once. We also made the numbers of recently called states to green&lt;/span&gt;&lt;span&gt; so that you can see at a glance &lt;/span&gt;&lt;span&gt;which states were newly called this round.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;As a contingency we also have some views in place that will kick in automatically in case a state is marked as “Disputed” or if it ends in a tie.&lt;/p&gt;
&lt;p&gt;&lt;br/&gt;&lt;span&gt;After tonight, the map will live on &lt;a href="http://www.thedailybeast.com/articles/2012/11/06/map-election-2012-electoral-college-results-state-by-state.html" title="Full Map" target="_blank"&gt;here&lt;/a&gt;. We hope you like it!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-michael&lt;/span&gt;&lt;/p&gt;</description><link>http://newsbeastlabs.tumblr.com/post/35157495162</link><guid>http://newsbeastlabs.tumblr.com/post/35157495162</guid><pubDate>Tue, 06 Nov 2012 18:17:00 -0500</pubDate><category>election2012</category><category>election</category><category>politics</category><category>ddj</category><category>interactive map</category></item><item><title>Tracking the presidential groundgame
As the two presidential...</title><description>&lt;img src="http://24.media.tumblr.com/tumblr_mcb5ctFkGV1riqdl6o1_500.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;h2&gt;Tracking the presidential groundgame&lt;/h2&gt;
&lt;p&gt;As the two presidential campaigns launch into their final throws, we wanted to see who had the biggest footprint of campaign headquarters across the country. The map above ran with &lt;a href="http://www.thedailybeast.com/articles/2012/10/19/ground-game-obama-opens-up-big-lead-in-state-headquarters.html" title="The Daily Beast: Groundgame" target="_blank"&gt;the resulting story&lt;/a&gt; showing Obama with a large advantage, especially in swing states. We thought getting from idea to map / chart would be as easy as checking the candidates’ websites or calling their press offices to request a full list. Not quite.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Finding Romney’s offices&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Governor Romney’s campaign didn’t get back to our requests so we dug into their website. Romney only had volunteer offices in 16 states, each of which has a web page and a map showing office locations. Here’s &lt;a href="http://www.mittromney.com/states/ohio" title="Ohio" target="_blank"&gt;Ohio’s&lt;/a&gt;. The data that powers the map is visible if you look at the Javascript files that power it, so we copied the data sixteen states into one file and saved it. They were in JSON file format — but more on that later.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Finding Obamas’s offices&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;President Obama has offices in many more states than Romney so going state by state is more of a hassle and his campaign’s website doesn’t have the same convenient state-by-state maps. Instead, you input your zip code and it gives you a map of all locations within forty miles of you. &lt;/p&gt;
&lt;p&gt;Needless to say, getting a comprehensive list by canvassing the country in 40 mile chunks was out of the question. Digging again into the javascript that powers the &lt;a href="http://www.barackobama.com/oh" title="Ohio" target="_blank"&gt;website&lt;/a&gt; (aside: the Obama website has some slick ASCII art in their source code), their volunteer center finder works by sending out a query that looks like this &lt;a href="http://offices.barackobama.com/postal_code/10011/"&gt;http://offices.barackobama.com/postal_code/10011/&lt;/a&gt; with your zip code making up the those last five digits. If you put that in your browser and hit return you’ll see the centers closest to the Daily Beast offices in Manhattan.&lt;/p&gt;
&lt;p&gt;It automatically looks within 40 miles of you but if you add “?distance=1000” at that url, it will search within however many miles you want. &lt;/p&gt;
&lt;p&gt;So if you add the zip code for the rough geographic center of the US, Lebanon, Kansas and a distance of 10,000 miles you get something that looks like this:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://offices.barackobama.com/postal_code/66952?distance=10000"&gt;http://offices.barackobama.com/postal_code/66952?distance=10000&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;which will give you a list, in JSON again, of every volunteer center in the country.&lt;/p&gt;
&lt;p&gt;This list returns a lot of information we didn’t immediately need, though, like hours of operation and email address contacts. We wrote an R script that took just the fields the we needed for our map, mostly the latitude and longitude, city, and state and made a clean spreadsheet in CSV format.&lt;/p&gt;
&lt;p&gt;From there we were able to do counts by state and plot them on a map. Once we had the final count, the Obama campaign confirmed that our number was in the right ballpark.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;BONUS&lt;/strong&gt;: Obama’s offices all include a Foursquare ID. If you want to play around with them, &lt;a href="http://s3.amazonaws.com/NewsBeastLabs/nbl-files/obama_locations.csv" title="Download the data" target="_blank"&gt;here’s the data&lt;/a&gt;, right click and choose “Save Links As…” if it doesn’t download automatically. Some interesting things could be finding the mayors of the obama campaign offices, which location has the most check-ins, check-ins over time in different locations etc. — let us know at newsbeastlabs@gmail.com and we’ll put up your stuff.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://newsbeastlabs.thedailybeast.com/nbl-files/files/2012/10/obama-romney-headquarters.csv" target="_blank"&gt;Here’s a spreadsheet of both candidates’ headquarters&lt;/a&gt;, as well.&lt;/p&gt;
&lt;p&gt;-michael&lt;/p&gt;</description><link>http://newsbeastlabs.tumblr.com/post/34109019268</link><guid>http://newsbeastlabs.tumblr.com/post/34109019268</guid><pubDate>Mon, 22 Oct 2012 14:43:00 -0400</pubDate><category>election2012</category><category>news</category><category>journalism</category><category>groundgame</category><category>mapping</category><category>scraping</category><category>RStats</category></item></channel></rss>
