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)

24fc88c86d3a46be91cea631183ff3ef

Loading and Parsing CSV Data

0 stars0🌍 Public
Iisavedalex
Last edited Jul 25, 2021
Created on May 16, 2021
Forked from HTML Starter

This example demonstrates the size and structure of a CSS named colors dataset by displaying its formatted size, row count, and column count as plain text. It loads the CSV file from a GitHub gist using D3’s `d3.csv` promise API, then formats the data back to CSV with `d3.csvFormat` to compute its kilobyte size. React state is not directly used in the rendering, but the page updates the DOM via `document.getElementById`. The example parses the remote CSV and reports three summary statistics in a large monospaced layout.

AI-generated description

A program that loads in some data about CSS named colors using D3 utilities, and uses React state to keep track of the data.