Fork of Loading and Parsing CSV Data
✓ Published0🌍 Public
This example demonstrates how to load and parse CSV data using D3 v5. It fetches a dataset of CSS Named Colors from a GitHub gist and displays key statistics: the file size in kilobytes, the number of rows, and the number of columns. The code primarily uses `d3.csv()` with a Promise-based `.then()` callback, though commented-out alternatives show fetching text with `fetch()` and `async/await`, plus `d3.csvParse()` for manual parsing. The output renders as plain text inside a `<pre>` element.
AI-generated descriptionA program that loads and parses some CSV data: CSS Named Colors.
See also:
MIT Licensed