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
RRahel Gunaratne
Last edited May 11, 2021
Created on May 11, 2021

This example demonstrates the size and structure of a CSS Named Colors dataset loaded from a CSV file, displaying the file size in kilobytes, row count, and column count in large text. It uses D3 v5’s `d3.csv` method with a Promise to fetch and parse the data asynchronously, while also providing commented alternatives using the Fetch API with `async`/`await` and `d3.csvParse`. The visualization is minimal, focusing on the data-loading process rather than graphical rendering, with all output written into a DOM element via `textContent`.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed