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)

674654e425524dec9122bd82d0092b00

Loading and Parsing CSV Data

0 stars0🌍 Public
EErik
Last edited Sep 8, 2021
Created on Sep 7, 2021
Forked from Hello HTML

This example demonstrates how to load and parse CSV data using D3 v7, displaying the dataset's size in kilobytes, row count, and column count. It fetches a CSV file of CSS named colors from a GitHub gist via `d3.csv`, then formats the data with `d3.csvFormat` to calculate its size. The results are rendered as text in a large `<pre>` element, with commented-out alternative code showing `fetch` combined with `d3.csvParse`.

AI-generated description

A programme that loads and parses CSV data.