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)

d17b8ce9ff6f473eb2bbb7c8ea7b1cff

Loading and Parsing CSV Data

0 stars0🌍 Public
BBoris Gomaz
Last edited Feb 16, 2023
Created on Feb 15, 2023

This example demonstrates how to load and parse CSV data from a remote URL using D3's `d3.csv` function. The program fetches a dataset of CSS named colors from a GitHub gist and then displays a summary containing the dataset's file size, number of rows, and number of columns. The summary is rendered in large text within a `<pre>` element using the `d3.csvFormat` API and basic JavaScript string concatenation. The code highlights the simplicity of asynchronous data loading in D3 v7.

AI-generated description

A program that loads some CSV data