Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Loading and Parsing CSV Data

Public visualization

Viewing a saved revision (read-only)

c8ccd54d7ca145d49ee127cf392656bf

Fork of Loading and Parsing CSV Data

0 stars0🌍 Public
Llingfa
Last edited Oct 27, 2022
Created on Oct 24, 2022

This example displays a plain-text summary of the CSS Named Colors CSV dataset loaded from a remote gist, showing its size in kilobytes, row count, and column count. It uses D3 v5’s `d3.csv` method to fetch and parse the data, then computes the formatted text with `d3.csvFormat`. The code also demonstrates alternative approaches commented out, including `fetch` with `async`/`await` and `d3.csvParse`, as well as a "pyramid of doom" pattern. The rendered output appears in a large `<pre>` element.

AI-generated description