Loading and Parsing CSV Data - Olympic Medals Count Dataset
This example demonstrates the size of the Olympic Medals Count dataset by displaying three summary statistics: total file size in kilobytes, number of rows, and number of columns. Using the d3.csv method, it fetches a CSV file from a GitHub gist containing medal counts for all countries from 1896 to 2018 across both summer and winter games. The code then applies d3.csvFormat to calculate the formatted data’s byte length, and reports the row count from the parsed array and column count from the data.columns property. The results appear in large text within an HTML pre element.
AI-generated descriptionThis dataset shows how many medals each country has won in all olympic games till 2018.
Both summer and winter games are included.
The columns include gold, silver and bronze medals in both games along with the country's ranking.
Source of this data is from this gist - Olympic Games medal Dataset(from 1896 to 2018)