🌍 Public
Viewing a saved revision (read-only)
b2c293eeda734d6a964a4e10bbf787ce
Fork of Loading and Parsing CSV Data
This example loads a CSV file containing CSS named colors and displays a text summary of its size and shape. The visualization simply reports the file size in kilobytes, the number of rows, and the number of columns, rendered in a large `<pre>` element. It uses the D3 v5 library's `d3.csv` method to fetch and parse the remote CSV data, and `d3.csvFormat` to compute the data size. The code also includes commented-out alternatives using `fetch` with async/await and a nested Promise structure.
AI-generated descriptionA program that loads and parses some CSV data: CSS Named Colors.
See also: