Loading and Parsing CSV Data exercise - Dataviz 2020 course 13 & 15
This example demonstrates how to load and parse a CSV file using D3 v5 and the Fetch API, displaying the dataset’s basic metrics—row count, column count, and file size—in a large text block. It fetches the raw CSV from a GitHub Gist, parses it with `d3.csvParse`, and writes the results to the page. The code includes alternative commented approaches using `d3.csv` and async/await, highlighting the parsing logic. The data originates from a manually cleaned Wikipedia table on fish as food, covering edible fish categories by texture and flavor.
AI-generated descriptionA program that loads and parses some CSV data: Fish as food.
Reference: Wikipedia: Fish as food Data is about the categorised fish that are edible, in terms of texture and flavour. Data was from the table on the wiki page, and cleaned by myself.