Skip to main content
100%

Fork of Loading and Parsing CSV Data

✓ Published0🌍 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
MIT Licensed

Similar vizzes