🌍 Public
Viewing a saved revision (read-only)
9ebf6da9c3414417a2ff1f2475d7653e
Loading and Parsing CSV Data
This example demonstrates the initial stage of a data visualization pipeline: loading and parsing CSV data from a remote URL. It fetches a dataset of CSS named colors using the Fetch API, then parses it with d3.csv. The visualization displays basic metadata about the parsed dataset—its size in kilobytes, row count, and column count—in a large pre element. The code highlights D3’s csvFormat method to compute data size and showcases how D3 v6 handles asynchronous data loading via Promises.
AI-generated descriptionA program that loads and parses csv data