🌍 Public
Viewing a saved revision (read-only)
d17573a3e9ef43a8b5151d37d74eded6
Loading and Parsing CSV Data
This example demonstrates how to load and summarize a CSV file using D3.js. It fetches CSS color data from a GitHub gist and displays the file size, row count, and column count in large text. The primary method uses `d3.csv` with a promise to parse the data, while commented alternatives show `fetch` with `async/await` and `d3.csvParse`. The output is rendered into a `<pre>` element, highlighting the parsed dataset’s basic metrics.
AI-generated descriptionA program that loads and parses some CSV data.