Robert Kosara has created an overlapped bar chart that describes the history of US Presidential votes, which is discussed in his EagerEyes blog. This view is interesting because the bars for the percent Electoral vote is on the top when it is less than the percent of Popular vote and on the bottom when it is greater. Although he used Excel computations to generate the view, it is easy to generate in Tableau by defining an extra column. Playing with the resulting workbook, I found that it is effective to sort the bars by the percent of the popular vote because you can clearly see all the presidents that were helped by the Electoral college to get above 50%.

You can see that despite the attention that the 2000 election brought to the electoral college, George W. Bush’s win was the 14th time that the ultimate winner earned less than 50% of the popular vote but more than 50% of the electoral college. Among the other thirteen times, 3rd-party candidates may have been the "spoilers" (as in Bill Clinton’s 1992 win over George H.W. Bush and Ross Perot). Nonetheless, it’s an interesting observation to realize how often this phenomenon has occurred.

Three interesting notes: John Adams (1796), Thomas Jefferson (1800) and John Q. Adams (1824) all earned a greater percentage of the popular vote than they did of the electoral college vote, with John Q. Adams not even hitting 50% of either. That was quite an election since it was eventually decided by the House of Representatives; for more details, see,_1824.

Here is how you build this overlapping bar view of two measures in Tableau:

  1. Build a bar view
  2. Drag the second measure to the axis to combine it with the first measure
  3. Move the Measure Names field to the color shelf
  4. Turn off stacking
  5. Adjust the overlap order by dragging items on the color shelf
  6. Finally, write a calculated field to create an extra column to show when the electoral % was less than the popular %. Add it to the Measure Names/Values card.

Les ressources suivantes peuvent vous intéresser...


Hello, Jock.
This is super. When I read the original piece I figured you would be interested in it and show the way in Tableau. The technique is very helpful for lots of stuff we do, so thanks for the tutorial. BTW, is it possible to do the data source as a .xls in addition to .xlsx for us Luddites who aren't up to Office 2007 yet?


Peace and All Good!

Michael W Cristiani

Market Intelligence Group

Hi Mike,
I've uploaded a version of the Tableau packaged workbook that is bound to a .xls file - click here to download.

The data is also now available on the original site as a CSV file (look at the bottom of the article).