🌍 Public
Viewing a saved revision (read-only)
1bf3d7894b49432681902dc209132d57
Loading and Parsing CSV Data
This example demonstrates the basic workflow of loading and parsing CSV data with D3.js. It fetches a remote CSV file containing named CSS colors and displays the file size in kilobytes, the number of rows, and the number of columns as text on the page. The code uses `d3.csv` to load the data and `d3.csvFormat` to measure its size, while `data.length` and `data.columns.length` report the dataset structure. The concise output highlights the parsed data’s dimensions without visualizing the actual color values.
AI-generated descriptionA program that loads and parses some CSV data