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)

79097241cf8d470b925720642bb6154f

Loading and Parsing CSV Data

0 stars0🌍 Public
CChristian Potdevin
Last edited Mar 21, 2021
Created on Mar 21, 2021
Forked from HTML Starter

This example demonstrates how to load and parse CSV data from a remote URL, displaying the file size, row count, and column count in a large HTML `<pre>` element. The program fetches text using the browser’s Fetch API, then converts it into an array of objects with `d3.csvParse`, which is part of D3 v5. The data comes from a GitHub gist containing CSS named colors. The output provides a concise summary of the dataset’s structure without rendering any charts or visualizations.

AI-generated description

A program that loads and parses some CSV data.