Skip to main content
100%

Version three: 2012 medal count versus log(GDP)

✓ Published0🌍 Public
RRuofan Chen
Last edited Nov 18, 2021
Created on Nov 16, 2021

This scatter plot displays the relationship between a country's logged total GDP and its 2012 Summer Olympic medal count, revealing a positive linear trend where wealthier nations tend to win more medals. Each red circle’s size encodes the country’s 2015 population, with hover tooltips showing country names. The visualization is built with vega-lite-api, vega-lite, and vega-tooltip, using D3’s csv parser to load and transform data from a public GitHub gist. Data is aggregated by athlete, not event, and GDP is calculated by multiplying the 2015 population by per-capita GDP.

AI-generated description

This is a scatter plot using vega-lite-api.

Iterate: the size of points (circles) reflects the population size (as the population affects the number of medals of a country).

the color of the points changes from blue to red, since the circle size depends on population size now, some countries circle radius is small, red makes the points pop out more.

Data and Description

This scatter plot describes 2012 summer olympic games medal count by country and the logarithm of country's GDP(2015 estimated). x-axis is log(total GDP) y-axis is the number of medals. This is a marked scatter plot. When the mouse is hovering over the point, the country name will be displayed There is a linear relationship between GDP and the number of medals. As GDP increases, the country tends to win more medals at the summer Olympics.
The data shown here comes from the Olympic info data. This data is an aggregate of Olympic data from 2000 to 2014, which is extracted from kaggle.

Note

All counts are based on athletes, not events. For example, if a country wins the swimming 4X100M freestyle relay, the number of athletes who have won medals for that event is 4. The goal is to measure how many athletes performed well in the Olympics, participated in various events, and won medals in the events.

MIT Licensed

Similar vizzes