🌍 Public
Viewing a saved revision (read-only)
7913697d1b60441db4f6f36bbcfc3174
Loading and Parsing CSV Data
This example demonstrates how to load and parse CSV data from a remote URL using D3.js v5. The page displays the size of the dataset in kilobytes, the total number of rows, and the number of columns in separate text blocks. It uses the `d3.csv` method to fetch the data asynchronously, then accesses the parsed array and its `.length` and `.columns` properties to compute the metrics. The `d3.csvFormat` function is used to estimate the file size from the parsed data.
AI-generated description