Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Parsing CSV Data with D3

Public visualization

Viewing a saved revision (read-only)

49ac6371800e45fdb50a89616938c425

Parsing CSV Data with D3

0 stars0🌍 Public
TTetiana Humeniuk
Last edited Jan 1, 2023
Created on Jan 1, 2023

This visualization demonstrates how to parse CSV data using D3.js by fetching a remote file and displaying summary statistics. The page shows the dataset’s row count, column count, and file size in kilobytes within a large text element. It uses D3’s `d3.csv()` function to load and parse the CSV from a GitHub gist, then formats the data with `d3.csvFormat()` to calculate its size. The example also includes commented-out code using `fetch()`, `async`/`await`, and `d3.csvParse()` as an alternative parsing approach.

AI-generated description

A program that loads and parses some CSV data.