Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Loading and Parsing CSV Data

Public visualization

Fork of Loading and Parsing CSV Data

0 stars0🌍 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

Comments

Sign in to join the discussion.

MIT Licensed