Skip to main content
100%

D3 Parsing CSV Data

✓ Published0🌍 Public
KKazSoftwareEngineer
Last edited Jun 7, 2022
Created on Jun 7, 2022

This example demonstrates how D3 can load and parse CSV data from a remote URL, then displays the dataset’s basic metrics—size in kilobytes, row count, and column count—as oversized text on a web page. It uses the `d3.csv` method to fetch and parse the file asynchronously, and also includes commented-out code showing alternative parsing with `d3.csvParse` on raw text. The data source is a gist-hosted file containing CSS named colors. The page’s minimal styling relies on a large `pre` element for output.

AI-generated description

A program that loads and parses some CSV data.

MIT Licensed

Similar vizzes