Fork of Loading and Parsing CSV Data
✓ Published0🌍 Public
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 descriptionA program that loads and parses some CSV data: CSS Named Colors.
See also:
MIT Licensed