Fork of Loading and Parsing CSV Data
This example displays summary statistics for a CSV dataset of cars, reporting the file size in kilobytes, number of rows, and number of columns. It loads the data from a GitHub gist using d3.csv, which returns a promise, then calculates the message from the parsed result and updates the text content of a DOM element. The code also includes commented-out alternatives using fetch with async/await and d3.csvParse, as well as a nested promise example. The page relies on D3 v5 and plain HTML/JavaScript without any React framework integration visible.