Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading and Parsing CSV data

Public visualization

Viewing a saved revision (read-only)

cb8285798d2042819471d432e9ebdffd

Loading and Parsing CSV data

0 stars0🌍 Public
Kkosakase
Last edited Jul 13, 2021
Created on Jul 12, 2021
Forked from HTML Starter

This example demonstrates the basic workflow of loading and parsing a CSV file with D3.js, displaying the data’s size, row count, and column count in a large text element. It uses `d3.csv` to fetch a remote CSV of CSS named colors from a GitHub gist, then computes the formatted string’s kilobyte size with `d3.csvFormat` and `Math.round`. The page also includes commented-out alternatives using `d3.csvParse` with `fetch` and async/await, though only the primary `d3.csv` promise-based method runs.

AI-generated description

Loading and Parsing CSV data