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
CCheng Tang
Last edited Oct 23, 2022
Created on Oct 23, 2022

This example demonstrates the basic mechanics of loading and parsing CSV data in D3. It fetches a dataset of CSS named colors from a GitHub gist and displays three summary statistics: file size in kilobytes, row count, and column count. The primary implementation uses D3 v5’s `d3.csv` method, which returns a promise, while commented alternatives show equivalent code using the Fetch API with `async`/`await` and `d3.csvParse`. The output is rendered as plain text inside a large `<pre>` element.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed