Skip to main content
100%

Loading and Parsing Data With d3.js

✓ Published0🌍 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.

MIT Licensed

Similar vizzes