Skip to main content
100%

Fork of Loading and Parsing CSV Data

✓ Published0🌍 Public
Jjeffmesie
Last edited Aug 26, 2021
Created on Aug 26, 2021

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 description
MIT Licensed

Similar vizzes