🌍 Public
Viewing a saved revision (read-only)
bd46b1c50ec34619815adf17b3476b33
Fork of Loading and Parsing CSV Data
This example shows how to load and parse CSV data in a browser, displaying basic statistics about the dataset as plain text. It fetches a CSV file containing CSS named colors from a remote URL, then uses d3.csvParse to convert the raw text into an array of objects. The code calculates and displays the file size in kilobytes, the number of data rows, and the number of columns. It relies on the Fetch API with async/await through a custom fetchText function, and manually triggers parsing via the d3.csvParse method.
AI-generated descriptionA program that loads and parses some CSV data: CSS Named Colors.
See also: