Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading and parcing CSV Data

Public visualization

Viewing a saved revision (read-only)

17594ac25e974dde92c28b3688d74b55

Loading and parcing CSV Data

0 stars0🌍 Public
Ssono-mama
Last edited Apr 15, 2021
Created on Apr 14, 2021
Forked from HTML Starter

This example demonstrates loading and parsing CSV data, displaying the row count, column count, and approximate file size in a large `<pre>` element. It fetches a remote CSV file containing CSS named colors using the Fetch API, then parses the text with `d3.csvParse`. The parsed dataset’s `length` and `columns` properties drive the summary message, while `text.length` calculates the kilobyte size. The code uses D3 v6 and async/await syntax inside a `fetchText` helper to handle the network request.

AI-generated description

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

See also React Starter.