Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading and Parsing Data With d3.js

Public visualization

Viewing a saved revision (read-only)

10965159820842e189bd2fb874a68b8f

Loading and Parsing Data With d3.js

0 stars0🌍 Public
BbeauMarko
Last edited Oct 13, 2021
Created on Oct 13, 2021

This example demonstrates how d3.csv loads and parses remote CSV data, displaying basic dataset statistics in a large preformatted text element. It fetches a CSV file of CSS named colors from a GitHub gist, then uses d3.csvFormat to calculate file size in kilobytes, along with row and column counts derived from the parsed array and its columns property. The visualization itself is purely textual, relying on the d3.csv promise-based API with a .then callback. Alternative fetch and async/await approaches with d3.csvParse remain commented out in the source.

AI-generated description

A program that loads and parses some CSV data.