Loading and Parsing CSV Data
✓ Published0🌍 Public
This example demonstrates the basic process of loading and parsing CSV data by displaying the file size, row count, and column count of a remote dataset. It fetches a CSV file from a GitHub Gist using the `fetch` API, then parses it with `d3.csv` and re-formats it with `d3.csvFormat` to compute the kilobyte size. The parsed data’s dimensions are displayed in large text within a `<pre>` element. The code also includes an alternative commented-out approach using `d3.csvParse` on raw text.
AI-generated descriptionA program tha loads and parses some CSV data.
MIT Licensed