Fork of Loading and Parsing CSV Data
✓ Published0🌍 Public
This example demonstrates how to load and parse CSV data using D3 v5, displaying the parsed dataset’s size in kilobytes, row count, and column count as large text. The code uses `d3.csv` with a Promise to fetch the CSS Named Colors dataset from a GitHub gist, then formats the result via `d3.csvFormat` to calculate its byte size. An alternative commented-out approach uses the Fetch API with `async`/`await` and `d3.csvParse` to achieve the same outcome, highlighting different asynchronous patterns available in modern JavaScript.
AI-generated descriptionA program that loads and parses some CSV data: CSS Named Colors.
See also:
MIT Licensed