Skip to main content
100%

Loading and Parsing CSV Data

✓ Published0🌍 Public
Ppranav-vis
Last edited Sep 4, 2021
Created on Sep 4, 2021

This example demonstrates how to load and parse CSV data using D3 v7 and the browser’s Fetch API. It displays a text summary of the CSS Named Colors dataset, reporting the total file size in kilobytes, row count, and column count. The code uses `d3.csv()` to fetch and parse the remote CSV, while an `async` function with `await` handles raw text retrieval, and `d3.csvFormat()` measures the dataset’s size.

AI-generated description
MIT Licensed

Similar vizzes