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)

4038df1628e64b7da773a1e49ceb1e9c

Loading and parsing CSV data

0 stars0🌍 Public
Cchrismeeky
Last edited Oct 17, 2021
Created on Oct 17, 2021
Forked from HTML Starter

This example demonstrates how to load and parse CSV data using D3 v7. It displays the dataset size in kilobytes, column count, and row count as plain text on the page. The code uses `d3.csv` to fetch and parse a remote CSV file containing CSS named colors from a GitHub gist, then formats a summary message with `d3.csvFormat` to calculate the size. An alternative commented-out approach using the Fetch API with `d3.csvParse` is also shown.

AI-generated description

A program that loads and parses CSV data