🌍 Public
Viewing a saved revision (read-only)
a28e9978ac1d4a038d73dae094935e6b
Loading and parsing CSV data
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.