Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Load and parse CSV data

Public visualization

Load and parse CSV data

0 stars0🌍 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.

Comments

Sign in to join the discussion.

MIT Licensed