Skip to main content
100%

Version two: 2012 medal count versus log(GDP)

✓ Published1🌍 Public
RRuofan Chen
Last edited Nov 17, 2021
Created on Oct 24, 2021

This scatter plot shows the relationship between a country’s total GDP (on a logarithmic scale) and its 2012 Summer Olympics medal count, revealing a positive linear trend. Hovering over a point displays the country’s name via the vega-tooltip handler. The visualization uses the vega-lite-api with a circle mark, encoding GDP and medal frequency as quantitative fields. Data is loaded from a CSV using d3.csv, with the GDP computed from population and per-capita GDP before applying a natural logarithm. The chart is rendered in D3 v5 with Vega-Lite.

AI-generated description

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

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