Skip to main content
100%

Loading and Parsing CSV

✓ Published0🌍 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.

MIT Licensed

Similar vizzes