Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading and Parsing CSV

Public visualization

Loading and Parsing CSV

0 stars0🌍 Public
WWaseem Medhat
Last edited Oct 16, 2020
Created on Oct 15, 2020
Forked from HTML Starter

This example demonstrates a minimal CSV parsing workflow, displaying the file size, row count, and column count of a remote CSS color dataset. The code fetches the CSV text using the native `fetch` API, then passes it to `d3.csv` to parse the data into a tabular structure. The resulting metrics are formatted with `d3.csvFormat` and written to a `<pre>` element. The page uses D3 v6 from the unpkg CDN, with all styling handled by a single CSS rule setting the font size.

AI-generated description

Loading and parsing CSV data.

Comments

Sign in to join the discussion.

MIT Licensed