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)

c76d1350044943ec90a613c5f7cbf9be

Loading and Parsing CSV Data

0 stars0🌍 Public
JjohnmurphyLC
Last edited May 27, 2023
Created on May 27, 2023
Forked from Hello HTML

This example demonstrates a straightforward way to load and parse CSV data using the D3.js library, version 7. It fetches a remote file containing CSS named colors and then displays three summary statistics: the formatted data size in kilobytes, the total row count, and the number of columns. The visualization uses `d3.csv()` to asynchronously fetch and parse the data, then computes the output by calling `d3.csvFormat()` to measure the data’s serialized length. Results are rendered as plain text inside an HTML `<pre>` element, with the font size significantly enlarged for readability.

AI-generated description

A program that loads and parses some CSV data.