🌍 Public
Viewing a saved revision (read-only)
d84f5d402583446bac3d6392f5c25e0d
Loading and Parsing CSV Data
This example demonstrates how to load and parse CSV data in D3.js by fetching a remote file and displaying basic statistics about its contents. It uses `d3.csv` to retrieve and parse the data asynchronously, then shows the file size in kilobytes, row count, and column count in a large `<pre>` element. The visualization is purely textual, with no graphical rendering, utilizing the D3 URL API to fetch data from a GitHub-hosted CSS named colors dataset. The code also references `d3.csvFormat` and `d3.csvParse` in commented alternatives.
AI-generated descriptionA program that loads and parses some CSV data.