Medals per Country Table

This visualization creates a simple table showing the countries sorted by the total number of medals. However, it is written in a way that makes it easy to adapt it to sort the countries by medals in a specific discipline. USA has the most medals overall, but what if you instead look at road and track cycling? Or perhaps Circket, which was at Olympic games only in 1900 with exactly one match?

options source

Loading content, please wait...

If you want to adapt the table to show different disciplines, you can just use the "options" user interface. The first control lets you choose one or more disciplines that you are interested in. You can also filter the table in a number of different ways, but for that you'll need to modify the source code on the "source" tab.

For example, if you want to see the results for specific Olympic games, you can change the second line of the source code to filter data by games. For London 2012 games, the code would be olympics.'by games'.'London (2012)' Once you do this, new option in the "options" tab appears letting you choose another games.

If you are interested in the project or you would like to collaborate on visualizing interesting data, drop us an email at [email protected], ping us on Twitter at @thegamma_net. All source code is available under Apache 2.0 license on GitHub.

A Visual History of the Olympics

In this visualization, we draw a timeline showing the number of medals of the top 5 countries over the entire history of the Olympic games. To find who the top medalists are, you can look at our 'medals by country' table. The visualization is inspired by the fantastic article A Visual History of Which Countries Have Dominated the Summer Olympics by the New York Times. We're drawing the chart using a simple area chart, so it is not as beautiful, but it shows many of the interesting facts:

options source

Loading content, please wait...

The visualizations shows a number of interesting facts that go well beyond the history of Olympic games, but reveal something about the last century:

  • World Wars — As you can see, no medals were awarded in 1916, 1940 and 1944. During the first and second world war, the Olympic games were cancelled.

  • Olympic Boycotts — The United States did not get any medals in 1980 because of the Moscow Olympic games boycott and Soviet Union did not get any medals in 1984 because of the L.A. Olympic games boycott.

To build the visualization (see the "source"), we had to explicitly list the countries to show and also add their names as labels for the chart. This could be a bit easier, but you can still quite easily modify the visualization to see different aspects of the history. Below, you can see one modification which uses the same method to visualize the countries dominating long distance runs. Alternatively, you can choose to compare different countries by modifying the list of countries written as [ .. ]. For example, compare medals by the teams of German, West Germany and East Germany as separate entities!