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)

400e9ebe81f547aea0347215d1e6ace0

Loading and Parsing CSV Data

0 stars0🌍 Public
TTaweewat Somboonpanyakul
Last edited May 24, 2021
Created on May 24, 2021
Forked from HTML Starter

This example demonstrates loading and parsing CSV data with D3.js v6, displaying file size, row count, and column count in a preformatted text block. It fetches a remote CSV file containing CSS named colors from a GitHub gist using `d3.csv`, which returns a promise, then formats the data with `d3.csvFormat` to calculate its kilobyte size. The code also includes commented alternatives using `fetch`, `async/await`, and `d3.csvParse` for manual text-based parsing. The visualization is minimal, focusing on data ingestion metrics rather than graphical output.

AI-generated description

A program to load CSV data