Skip to main content
100%

Winter Olympics Participants - Iterate

✓ Published1🌍 Public
AAkanksha
Last edited Feb 7, 2024
Created on Feb 7, 2024

This visualization displays the number of participant countries in each Winter Olympics from 1924 to 2018, with each circle representing a year. The code computes participant counts by aggregating unique country names per year using a JavaScript `Set` within a `reduce` operation. It uses D3.js scales and axes to map years and counts, and renders circles with a fixed radius and reduced opacity to show the trend. Data comes from a Kaggle dataset of Winter Olympic medals.

AI-generated description

Dataset - https://www.kaggle.com/datasets/ramontanoeiro/winter-olympic-medals-1924-2018

  1. Added opacity
  2. Changed background and circle colors

Challenge - I am not able to figure out how to convert 1,930 to 1930. I tried parseInt and toString(), but I think I am using them in the wrong place.

MIT Licensed

Similar vizzes