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
CCesar R Castillo
Last edited Jan 15, 2022
Created on Jan 15, 2022

This example demonstrates how to load and parse CSV data from a remote URL, displaying the dataset’s size in kilobytes, row count, and column count. Using D3 v5’s `d3.csv` method, it fetches the CSS Named Colors dataset from a GitHub gist, then formats the parsed rows with `d3.csvFormat` to calculate the file size. The result is rendered as text inside an HTML `<pre>` element. Alternate implementations using `fetch` with `async`/`await` and `d3.csvParse` are commented out for comparison.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed