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)

78f8383aeca54ea0948e6fbf9068163d

Loading and Parsing CSV Data

0 stars0🌍 Public
TTung Pham
Last edited Mar 14, 2021
Created on Mar 13, 2021
Forked from Hello HTML

This example demonstrates how to load and parse CSV data using D3.js, displaying the file size, row count, and column count of a remote dataset containing CSS named colors. It uses `d3.csv` to fetch and parse the data from a GitHub gist URL, then formats the output with `d3.csvFormat` to calculate the data’s size in kilobytes. The message is rendered into a `<pre>` element with large typography. A commented-out alternative using the Fetch API and `d3.csvParse` shows an equivalent approach.

AI-generated description

A program that loads and parses CSV data