Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading and Parsing CSV Data

Public visualization

Loading and Parsing CSV Data

0 stars0🌍 Public
CChira Cezara Victoria
Last edited Oct 2, 2021
Created on Sep 30, 2021
Forked from HTML Starter

This example demonstrates how to load and parse a remote CSV file using D3 v7. The page displays a single message summarizing the dataset’s dimensions: the number of columns, the approximate file size in kilobytes, and the number of rows. It uses `d3.csv` to fetch and asynchronously parse the CSV, then `d3.csvFormat` to calculate the data’s byte length. The data comes from a GitHub-hosted CSS Colors CSV file, and the summary is rendered into a `<pre>` element.

AI-generated description

A program that loads and parses some CSV data

Comments

Sign in to join the discussion.

MIT Licensed