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)

d5fb73a867bc42ecb3d2e91fba4f8f80

Loading and Parsing CSV Data

0 stars0🌍 Public
11godfrey
Last edited Mar 5, 2023
Created on Mar 4, 2023
Forked from HTML Starter

This example demonstrates loading a remote CSV file of CSS named colors and displaying basic file statistics. A large preformatted text element shows the file size in kilobytes, the number of rows, and the number of columns. The code uses the d3.csv method from D3 v7 to fetch and parse the data asynchronously, then accesses the parsed array and its columns property. The data comes from a GitHub gist URL, and the results are written to the page via textContent.

AI-generated description

A program that loads and parses some CSV data.