Skip to main content
100%

Example Loading and Parsing CSV Data

✓ Published0🌍 Public
ZZololen
Last edited Jul 3, 2022
Created on Jul 3, 2022

This example demonstrates loading and parsing CSV data using D3 v5. It fetches a real estate dataset from the Corgis educational repository and displays summary statistics—file size in kilobytes, row count, and column count—in large text. The code uses `d3.csv` to asynchronously fetch and parse the CSV, then `d3.csvFormat` to measure the raw data size. The parsed data is accessed via `data.length` and `data.columns`, with the resulting summary rendered into a `pre` element.

AI-generated description
MIT Licensed

Similar vizzes