Loading and parsing CSV data
✓ Published0🌍 Public
This example demonstrates the basic workflow of loading and parsing a CSV file with D3. It fetches a named CSS color dataset from a GitHub Gist and computes three summary statistics: the size of the formatted CSV data in kilobytes, the total number of data rows, and the number of columns. The results are displayed as large text in a browser. The code uses `d3.csv` to retrieve and parse the remote data, while `d3.csvFormat` is used to serialize the dataset back into a string to measure its length.
AI-generated descriptionA program that loads and parses some CSV data.
MIT Licensed