Skip to main content
100%

loading and parsing CSV data

✓ Published0🌍 Public
NNYY
Last edited Jan 23, 2022
Created on Jan 22, 2022

This example demonstrates loading and parsing CSV data using the Fetch API and D3’s `csvParse` method. It fetches a remote file containing CSS named colors, converts the raw text into an array of objects, and then displays the total row count as plain text on the page. The code uses an asynchronous function with `await` to handle the network request, and relies on D3’s parsing to structure the tabular data for further use.

AI-generated description
MIT Licensed

Similar vizzes