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)

b22b8f5cf61046559923a1d32556f65a

Loading and Parsing CSV data

0 stars0🌍 Public
DDaMei1993
Last edited Jul 27, 2021
Created on Jul 27, 2021
Forked from Hello HTML

This example demonstrates how to load and parse CSV data from a remote URL using D3.js v7. It displays a summary of the dataset, including its approximate size in kilobytes, row count, and column count, in a large text element. The code uses the `d3.csv` method to fetch and parse the data, then accesses the resulting array's `length` and `columns` properties. The data source is a GitHub Gist containing CSS named colors. The script also includes commented-out alternatives using the Fetch API with `d3.csvParse`.

AI-generated description

A program that loads and parses CSV data