🌍 Public
Viewing a saved revision (read-only)
f87db6b1d794482e9c5d257b9499478d
Loading and parsing CSV data with D3
This example demonstrates how to load and parse CSV data from a remote URL using D3 v5, displaying the file size, row count, and column count of the dataset. It fetches a CSV containing CSS named colors via `d3.csv`, then uses `d3.csvFormat` to measure the data’s byte size. The code also shows commented alternatives using the Fetch API, `d3.csvParse`, and async/await functions. Results appear in a large, preformatted text element.
AI-generated descriptionA program that loads and parses some CSV data.