My Favorite Graphs: 512 Paths to the White House

In this My Favorite Graphs episode, I revisit the New York Times’ 2012 election visualization, 512 Paths to the White House, by Mike Bostock and Shan Carter. I walk through how its branching diagram shows the combinations of competitive states that could lead Barack Obama or Mitt Romney to victory. I explain how simple state-by-state toggles let readers test their own expectations and explore the remaining possibilities. I discuss the vertical layout, highlighting, and changing display as states are selected. What I love most is how the interaction lets each reader personalize the experience of exploring the data.

Resources

512 Paths to the White House — Mike Bostock and Shan Carter, The New York Times

Different Ways to Listen to the Show!

New Ways to Support the Show!

With more than 300 guests and 13 seasons of episodes, the PolicyViz Podcast is one of the longest-running data visualization podcasts around. You can support the show by downloading and listening, following the work of my guests, and sharing the show with your networks. If you’re interested in financially supporting the show, you can sign up for my Patreon platform, make a one-time payment via PayPal, or shop one of the show’s sponsors.

Transcript

00:00:06 Jon Schwabish
Welcome back to the PolicyViz podcast. I'm your host, Jon Schwabish. Hope you're well. The weather here has gotten a little bit chillier in late October here in Washington, D.C., but we continue with the podcast nonetheless because that's an indoor activity, so no problem.

00:00:22 Jon Schwabish
This is one of these intervening episodes on my favorite graphs, and because we are getting closer to Election Day here in the U.S., I thought I would focus our attention on an Election Day visualization, one of my favorites from Mike Bostock and Sean Carter. The first one published in November of 2012. If you're on YouTube, you can watch me play around with it. If not, I'll put the link in the show notes to the audio and you can take a look at it yourself.

00:00:47 Jon Schwabish
Let me describe it: 512 paths to the White House. This is the Barack Obama-Mitt Romney election in 2012. The title here: "512 Paths to the White House." Select a winner in the most competitive states below to see all the paths to victory available for either candidate. And so we have a number of competitive states that the two candidates were vying for. And a little quaint, almost, as it were, but you can see how much the world has changed.

00:01:18 Jon Schwabish
The U.S. Electoral College has changed here from 2012. Here are the competitive states back in 2012: Florida, Ohio, North Carolina, Virginia, Wisconsin, Colorado, Iowa, Nevada, and New Hampshire. So that map has certainly changed as we get into the midterms here in 2026. But we start here with basically every state has two as a toggle. You pick the Democrat or the Republican.

00:01:47 Jon Schwabish
And below that starts what is a lovely Sankey diagram. And so in the blue text on the left, it says Obama has 431 ways to win. And on the right, it says Romney has 76 ways to win. And right in the middle, in yellow, is five ties. And this is just a Sankey diagram that branches out so that if Obama wins Florida or Romney wins Florida, then Obama, if he wins Florida, needed to just win Ohio. But if he wins Florida and loses Ohio, then he could win North Carolina. And so it branches off into all these combinations, which itself is really interesting.

00:02:23 Jon Schwabish
And you could hover over each of these branches to see what would happen. For example, if you thought Romney would win Florida and win Ohio, then if Obama wins North Carolina and Wisconsin, Obama would win. And so it's all these combinations, which is how you get, of course, to the 512 paths. And that's just hovering over the branches.

00:02:45 Jon Schwabish
But we could also select our expectations, as it were. So if we say that Florida will go for a Republican, then the Sankey diagram shortens up because that row in the Sankey is eliminated. And we could go back and forth. It doesn't have to be in order, which is nice. If we're more convinced or sure that Obama, for example, is going to win Virginia and Wisconsin, then we could select those states and we could figure out what the remaining possibilities are.

00:03:15 Jon Schwabish
And so it tells you each of these opportunities or each of these combinations. So if Obama, for example, were to win Virginia and Wisconsin, then the next thing I pick were Romney to win Florida, then Obama would need to win Ohio. Okay, so let's continue this. Let's say Romney won Ohio. Well, now Obama could still win if he wins North Carolina. Let's put that into Romney's camp. And then we have all these combinations.

00:03:41 Jon Schwabish
So why do I love this piece? A few reasons. One is that I think it might be the first time I saw a Sankey diagram, not just in an interactive way, though it might be, and not just vertically, which I think was fairly rare. Even today, they're usually shown left to right, showing flows going left to right. So the vertical orientation was new.

00:04:06 Jon Schwabish
But also the fact, not just the interactivity in the sense that you could hover or click, but that it allowed you to do your own calculations, as it were, allowed you to put in your own projections, your own expectations, your own beliefs about what was going to happen to the election. And so this is, in my memory at least, now 2012, so 14 years later, this is one of the first pieces I remember being online where I could really personalize my experience, right? Because I'm putting in my expectations or my hopes or my beliefs about what would happen in the election. And you can keep toggling between all these different options so that you could figure out what the combinations would be for these two candidates in these two races.

00:04:51 Jon Schwabish
And so if you started with going left to right, Florida, Ohio, North Carolina, and then continued, that's one way to address this. But you could also start on the right end or right in the middle or mix and match. You could vary your experience with the visualization itself based on your confidence of the result. And so what's also nice about it is that, and I'm going to reset it here while I'm playing around with it.

00:05:16 Jon Schwabish
What's also nice is that it started with Florida. Now, I believe this is sorted left to right, also top to bottom, same order of each state by number of electoral votes, which I think makes sense, right? So once you select the state, it removes itself from the visualization. So once I select Florida, the entire visualization changes so that Ohio is now at the top. It's the state with the next largest number of electoral votes. And so it guides you through all of these different selections for Obama and for Romney, but by the number of electoral votes of each state.

00:05:54 Jon Schwabish
And the interactivity is very simple, very straightforward. It's a binary toggle, Democrat, Republican. For each of these nine states, the interactivity allows you to see what the different combinations would be, and the highlighting works really well. So this is one of my favorite pieces for elections. If I have time, patience, willingness to put myself out there, we'll talk about the New York Times Needle. But for now, this is one that I'm focused on.

00:06:23 Jon Schwabish
This is one of my favorites. I don't think they do this anymore for elections. I don't know why. I think it's a great piece. But 512 Paths to the White House from the New York Times. Make sure you check it out. I'll put the link in the show notes. And I hope you will enjoy this visualization project as well.

00:06:42 Jon Schwabish
So until next time, this has been the PolicyViz podcast. Thanks so much for listening.