Skip to main content
100%

Loading and parsing CSV

✓ Published0🌍 Public
AAlex Stulov
Last edited Jul 8, 2021
Created on Jul 6, 2021
Forked from HTML Starter

This example demonstrates how to load and parse a CSV file from a remote URL using D3 v7. The visualization displays a text summary showing the file size in kilobytes, the number of data rows, and the number of columns after parsing. It uses `d3.csv()` to fetch and parse the CSS named colors dataset from a GitHub gist, then `d3.csvFormat` to measure the data. A commented-out alternative shows the equivalent approach using `fetch` and `d3.csvParse`.

AI-generated description

Loading and parsing some CSV data.

MIT Licensed

Similar vizzes