Skip to main content
100%

Fork of Loading and Parsing CSV Data

✓ Published1🌍 Public
Ffjvoris
Last edited Mar 5, 2023
Created on Mar 5, 2023

This example demonstrates how to load and parse CSV data, displaying file size, row count, and column count for the CSS Named Colors dataset. It uses d3.csv to fetch and parse the remote CSV file, then computes the formatted data size with d3.csvFormat. The interface is a simple HTML page with a large preformatted text area, updated dynamically via JavaScript promises. The code also includes commented alternatives using fetch with async/await and d3.csvParse, illustrating different approaches to asynchronous data loading in D3 v5.

AI-generated description
MIT Licensed

Similar vizzes