Skip to main content
100%

Load and parse CSV data

✓ Published0🌍 Public
Iinar-vision
Last edited Sep 1, 2022
Created on Sep 1, 2022
Forked from HTML Starter

This example demonstrates how to load and parse CSV data using D3.js v7 in a minimal HTML page. It fetches a remote CSV file containing CSS named colors via the Fetch API and d3.csv, then summarizes the result as text: the file size in kilobytes, row count, and column count displayed in large monospace text. The code also includes a commented alternative using d3.csvParse to parse raw text fetched separately, showing two approaches to CSV handling in D3.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes