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
RRohinton Kazak
Last edited May 24, 2021
Created on May 23, 2021
Forked from HTML Starter

This example demonstrates how to load and parse a CSV file from a remote URL using D3.js v6, displaying basic file statistics in large text. It uses `d3.csv` to fetch the data asynchronously, then reports the computed size in kilobytes, column count, and row count from the parsed result. The code also includes commented-out alternatives using the Fetch API with `d3.csvParse` to show equivalent parsing methods. The data originates from a GitHub gist containing basic color information, and the output is rendered into a styled `<pre>` element.

AI-generated description

A program that loads and parses some csv data.

Comments

Sign in to join the discussion.

MIT Licensed