Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading and Parsing CSV Data

Public visualization

Loading and Parsing CSV Data

0 stars0🌍 Public
CChandré De Wet
Last edited Jul 9, 2021
Created on Jul 8, 2021
Forked from Hello HTML

This example demonstrates how to load and parse CSV data from a remote URL using the Fetch API and D3 v7. It displays a summary of the parsed dataset, including file size in kilobytes, row count, and column count, inside a large `<pre>` element. The code uses `fetch` and `response.text()` to retrieve the raw CSV text, then converts it into a parsed data array and column list with `d3.csvParse`. The data comes from a GitHub-hosted file containing CSS named colors.

AI-generated description

A bare minimum HTML page.

Comments

Sign in to join the discussion.

MIT Licensed