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)

89be655bc0f74abba7bbc09571955a50

Fork of Loading and Parsing CSV Data

0 stars0🌍 Public
GGregS1290
Last edited Oct 25, 2021
Created on Oct 25, 2021

This example demonstrates how to load and parse CSV data from a remote URL. It displays a message showing the data’s size in kilobytes, the number of rows, and the number of columns from the CSS Named Colors dataset. The code uses D3 v7’s `d3.csv` and `d3.csvFormat` to fetch and measure the data, then updates a `<pre>` element with the summary. A commented alternative shows the equivalent approach using the Fetch API and `d3.csvParse`.

AI-generated description