Skip to main content
100%

Loading and Parsing CSV Data

✓ Published0🌍 Public
KKazushige Okuma
Last edited Oct 19, 2021
Created on Oct 18, 2021
Forked from HTML Starter

This example demonstrates how to load and parse CSV data using D3 v7, reporting the file size, row count, and column count for a dataset of CSS named colors. It uses `d3.csv` to fetch and parse the remote CSV file, then displays the summary statistics in a large `<pre>` element by updating its text content. The data originates from a GitHub gist containing named color values, and the code also includes a commented-out alternative approach using the Fetch API with `async`/`await` and `d3.csvParse`.

AI-generated description

Loading and parsing some CSV data

MIT Licensed

Similar vizzes