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)

c710118982454fcbb1282f11dfdeb276

Fork of Loading and Parsing CSV Data

0 stars0🌍 Public
EEdgar Alves
Last edited Apr 12, 2021
Created on Apr 12, 2021

This example demonstrates how to load and parse CSV data using D3’s `d3.csv` method, which returns a promise. It fetches a dataset of CSS named colors from a GitHub gist, then displays the file size in kilobytes, the row count, and the column count in a large-format text element. The code also includes commented-out alternatives using `fetch` with `async`/`await` and `d3.csvParse`, illustrating different approaches to the same task. The visualization is purely text-based, with no graphical rendering.

AI-generated description