Fork of Loading and Parsing CSV Data
✓ Published0🌍 Public
This example demonstrates how to load and parse CSV data from a remote URL, displaying the dataset’s size in kilobytes, row count, and column count. Using D3 v5’s `d3.csv` method, it fetches the CSS Named Colors dataset from a GitHub gist, then formats the parsed rows with `d3.csvFormat` to calculate the file size. The result is rendered as text inside an HTML `<pre>` element. Alternate implementations using `fetch` with `async`/`await` and `d3.csvParse` are commented out for comparison.
AI-generated descriptionA program that loads and parses some CSV data: CSS Named Colors.
See also:
MIT Licensed