Export Image
Export Code

Version three: 2012 medal count versus log(GDP)

Ruofan Chen

Last edited Nov 18, 2021
Created on Nov 16, 2021

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