🌍 Public
Viewing a saved revision (read-only)
c6cb58d3d1304645a798331d292cf2b3
Fork of Loading and Parsing CSV Data
This example demonstrates loading and parsing CSV data using D3 v5, displaying summary statistics about the dataset in a large HTML `<pre>` element. The visualization shows the file size in kilobytes, the number of rows, and the number of columns from a CSV file containing CSS named colors. The code uses `d3.csv` to fetch and parse the remote CSV URL, then `d3.csvFormat` to calculate the data’s size. The resulting text output updates the page via the Document Object Model’s `textContent` property.
AI-generated descriptionA program that loads and parses some CSV data: CSS Named Colors.
See also: