Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Loading and Parsing CSV Data

Public visualization

Viewing a saved revision (read-only)

068d40e037524d918d4a938b4128cf33

Fork of Loading and Parsing CSV Data

0 stars0🌍 Public
VVenkat
Last edited Sep 12, 2021
Created on Sep 12, 2021

This example demonstrates how to load and parse CSV data from a remote source. It uses D3 v5’s `d3.csv` method to fetch the file and then displays summary statistics—the file size in kilobytes, number of rows, and number of columns—as large text on the page. The code also includes commented alternatives using the Fetch API with `async`/`await` and `d3.csvParse`. The data source is a GitHub gist containing CSS named colors.

AI-generated description