Winter Olympics Participants - Iterate
✓ Published1🌍 Public
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 descriptionDataset - https://www.kaggle.com/datasets/ramontanoeiro/winter-olympic-medals-1924-2018
- Added opacity
- 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