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
Aaakarsh satyam
Last edited Oct 14, 2021
Created on Oct 14, 2021

This example demonstrates the size and structure of a CSV dataset by displaying three statistics: the file size in kilobytes, the number of rows, and the number of columns. It loads the CSS Named Colors CSV file using `d3.csv`, then uses `d3.csvFormat` to measure the data length and accesses the `data.columns` property. The output is rendered as large text within an HTML `<pre>` element, styled via CSS. The code also includes commented-out alternatives using `fetch`, `async`/`await`, and `d3.csvParse`, highlighting different data-loading approaches.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed