Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Parsing CSV data with D3

Public visualization

Viewing a saved revision (read-only)

beed2279eb1945dd90c11672e5c1b92c

Parsing CSV data with D3

0 stars0🌍 Public
EElvira Nassirova
Last edited Jun 8, 2021
Created on Jun 8, 2021

This example demonstrates how to load and parse a CSV file from a remote URL using D3 v6. It displays the file size, row count, and column count on the page. The code uses `d3.csv` to fetch and parse the data asynchronously, then accesses the resulting array and its `columns` property, while `d3.csvFormat` is used to measure the raw text length. The data comes from a GitHub gist containing CSS named colors.

AI-generated description

A program that loads and parses some CSV data.