Skip to main content
100%

Version two: Gold Medal by Country

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

This interactive line chart displays the number of gold medals won by a selected country in the Summer and Winter Olympics from 2000 to 2014, with the data sourced from Kaggle. Using D3 v4, the visualization renders two lines per country—one for each season—which can be highlighted in red via a dropdown menu. A second dropdown allows users to switch between countries, with the y-axis dynamically rescaling to accommodate each nation’s medal totals. The SVG paths are generated with `d3.line` and animated transitions update the chart.

AI-generated description

This line chart uses d3 with menu.

Data and Description

It shows the number of gold medals in the Olympics for a particular country from 2000 to 2014. It aims to highlight the changes in the number of gold medals in the Olympics in various countries. The data is collected by olympic data. The lines refer to the trend of the number of gold medals. There are two lines on the plot. One is the summer medal count, the other is the winter medal count. The user can use the menu to select the country. The season menu can be selected to see the highlighted line in red.

The data is extracted from kaggle.

MIT Licensed

Similar vizzes