🌍 Public
Viewing a saved revision (read-only)
e0769224d9b64a3d8dd3c1398685087f
Loading and Parsing CSV Data
This example demonstrates the process of loading and parsing CSV data by fetching a file of CSS named colors and displaying summary statistics about it. It shows the data’s size in kilobytes, the number of rows, and the number of columns as large text on the page. The code uses the `fetch` API within an `async` function to retrieve the raw text, then relies on `d3.csv` and `d3.csvFormat` to parse and measure the data, highlighting the integration of D3 v5 with modern JavaScript.
AI-generated descriptionA program that loads and parses some CSV data: CSS Named Colors.
See also: