🌍 Public
Viewing a saved revision (read-only)
f63b103488324a86809d831229424b96
Loading and Parsing CSV Data
This example demonstrates loading and parsing a CSV file with D3, displaying the file size, row count, and column count as large text. It uses `d3.csv` to fetch and parse the CSS Named Colors dataset from a GitHub gist, then formats the results with `d3.csvFormat` to calculate kilobytes. The code also includes commented alternatives using `fetch` with `async/await` and `d3.csvParse`.
AI-generated descriptionA program that loads and parses CSV data.