Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

loading and parsing CSV data

Public visualization

Viewing a saved revision (read-only)

505bdbc699ae473e839167f181e93ed0

loading and parsing CSV data

0 stars0🌍 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