Fork of Loading and Parsing CSV Data
✓ Published0🌍 Public
This example shows the size and structure of a CSV dataset by displaying its file size in kilobytes, row count, and column count in a large HTML `<pre>` element. It fetches CSS named colors data from a remote gist URL using the `d3.csv` method, which returns a promise and parses the response. The code then uses `d3.csvFormat` to calculate the data’s byte length and accesses the parsed object’s `length` and `columns` properties to generate the summary. D3 v5 and React are present in the project, but the visible rendering relies solely on D3’s CSV parsing and formatting APIs.
AI-generated descriptionA program that loads and parses some CSV data: CSS Named Colors.
See also:
MIT Licensed