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
Ccaptind
Last edited Feb 22, 2023
Created on Feb 21, 2023
Forked from HTML Starter

This example demonstrates the initial steps of working with tabular data in D3 by fetching a CSV file and parsing it into JavaScript objects. It displays a summary message showing the file size in kilobytes, the number of rows, and the number of columns. The code uses the native `fetch` API to retrieve the remote CSV from a GitHub gist, followed by `d3.csvParse` to convert the raw text into an array of objects. The resulting counts are rendered into a `<pre>` element with large font styling, highlighting the parsed data’s structure without showing its contents.

AI-generated description

A program that loads and parses CSV data.

Comments

Sign in to join the discussion.

MIT Licensed