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)

78838335ea7444e1a271d04658b9ff79

Parsing CSV Data with d3

0 stars0🌍 Public
DDavid
Last edited Mar 21, 2021
Created on Mar 21, 2021

This example demonstrates how to load and parse a CSV file using D3, displaying the dataset’s size in kilobytes, row count, and column count in large text. It fetches a remote CSV of CSS named colors via `d3.csv`, then formats the parsed data with `d3.csvFormat` to compute its byte size. The page uses D3 v6 and also includes commented-out code showing an alternative approach with the Fetch API, `async/await`, and `d3.csvParse`.

AI-generated description

A program which load a csv data.