Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading and parsing CSV data with D3

Public visualization

Viewing a saved revision (read-only)

f87db6b1d794482e9c5d257b9499478d

Loading and parsing CSV data with D3

0 stars0🌍 Public
Mmaxthamt
Last edited Mar 12, 2021
Created on Mar 12, 2021

This example demonstrates how to load and parse CSV data from a remote URL using D3 v5, displaying the file size, row count, and column count of the dataset. It fetches a CSV containing CSS named colors via `d3.csv`, then uses `d3.csvFormat` to measure the data’s byte size. The code also shows commented alternatives using the Fetch API, `d3.csvParse`, and async/await functions. Results appear in a large, preformatted text element.

AI-generated description

A program that loads and parses some CSV data.