Skip to main content
100%

Fork of Loading and Parsing CSV Data

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

Similar vizzes