Skip to main content
100%

Fork of Loading and Parsing CSV Data

✓ Published0🌍 Public
Wwzhang88
Last edited Nov 20, 2021
Created on Nov 20, 2021

This example demonstrates how to load and parse CSV data using D3.js v5, fetching a remote dataset of CSS named colors. The visualization displays summary statistics about the dataset, including its size in kilobytes, row count, and number of columns, rendered as large text. The code specifically uses `d3.csv` with a Promise-based `.then()` method to fetch and parse the data, alongside `d3.csvFormat` and `d3.csvParse` for formatting and parsing operations. It also includes commented-out alternatives using the Fetch API with `async`/`await` and a nested callback approach.

AI-generated description
MIT Licensed

Similar vizzes