Skip to main content
100%

Fork of Loading and Parsing CSV Data

✓ Published0🌍 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
MIT Licensed

Similar vizzes