Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading and Parsing Data

Public visualization

Viewing a saved revision (read-only)

5bea1906f37a492a88076ac8ce62cc1a

Loading and Parsing Data

0 stars0🌍 Public
DDanny Stephens
Last edited Sep 4, 2021
Created on Sep 2, 2021
Forked from HTML Starter

This example demonstrates how to load and parse CSV data using D3 v7, displaying a summary of the dataset’s size in rows, columns, and kilobytes. It fetches a remote CSV file of named CSS colors via `d3.csv`, then computes the row count from the parsed array and column count from `data.columns`. The page’s message is updated with this information, showing the result in large text. The code also includes commented alternatives using the Fetch API with `async/await`.

AI-generated description

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

See also React Starter.