Fork of Loading and Parsing CSV Data
✓ Published0🌍 Public
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:
MIT Licensed