Fork of Loading and Parsing CSV Data
✓ Published0🌍 Public
This example demonstrates loading and parsing CSV data from a remote source, then displaying summary statistics about the dataset. It uses D3 v5’s `d3.csv` method to fetch and parse the CSS Named Colors dataset from a GitHub gist, and computes the file size in kilobytes, the number of rows, and the number of columns. The resulting message is rendered into a `pre` element using vanilla DOM manipulation. The code also includes commented alternatives using `fetch` with `async/await` and `d3.csvParse`.
AI-generated descriptionA program that loads and parses some CSV data: CSS Named Colors.
See also:
MIT Licensed