Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Loading and Parsing CSV Data

Public visualization

Fork of Loading and Parsing CSV Data

0 stars0🌍 Public
Ppnlinyz
Last edited Apr 17, 2021
Created on Apr 17, 2021

This example demonstrates how to load and parse CSV data using the D3.js library, displaying file size, row count, and column count from a dataset of CSS named colors fetched from a remote URL. It uses `d3.csv` with a promise-based `then` method to asynchronously retrieve and parse the data, then computes metrics from the resulting array and its `.columns` property. The visualization presents these statistics as plain text in a large `<pre>` element, with the code also including commented-out alternatives using `fetch`, `async`/`await`, and `d3.csvParse`.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed