🌍 Public
Viewing a saved revision (read-only)
0388176d3a124874a1101854a88f7cf8
Loading and Parsing CSV data
This example displays the result of loading and parsing a CSV file from a remote URL. It fetches the raw text of the dataset, then uses `d3.csvParse` to convert it into an array of objects. The program calculates and displays the file size in kilobytes, the number of rows, and the number of columns in a large `<pre>` element. The data source is a GitHub gist containing CSS named colors, and the code relies on the `fetch` API and D3 v7.
AI-generated descriptionA program that loads and parses some CSV data.