Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading and Parsing CSV Data

Public visualization

Viewing a saved revision (read-only)

588b9b6a5f3e441790242ac10517241a

Loading and Parsing CSV Data

0 stars0🌍 Public
CCheng Tang
Last edited Oct 22, 2022
Created on Oct 22, 2022
Forked from HTML Starter

This example demonstrates loading and parsing CSV data using D3. It fetches a CSV file containing CSS named colors from a GitHub gist and uses the `d3.csv()` function to parse it. The visualization displays the parsed dataset’s metrics in a large text format, showing the row count, column count, and file size in kilobytes, which is computed with `d3.csvFormat()`. The code also includes commented alternatives using `fetch()` and `d3.csvParse()` with async/await syntax.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.