Loading and Parsing CSV Data
This example demonstrates how to load and parse CSV data from a remote URL, displaying summary statistics about the dataset. It uses d3.csv to fetch the CSS Named Colors data, then reports the file size in kilobytes, the number of rows, and the number of columns. The code includes commented alternatives using fetch, async/await, and d3.csvParse, along with a nested promise example, to illustrate different approaches to handling asynchronous data loading. The final result appears as large text in a pre element.