Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Loading and Parsing CSV Data -Simon-

Public visualization

Fork of Loading and Parsing CSV Data -Simon-

0 stars0🌍 Public
SSimonTeg
Last edited Jul 27, 2021
Created on Jul 27, 2021

This example displays metadata about a CSV file containing CSS named colors, showing its size in kilobytes, row count, and column count. The code uses D3 v5’s `d3.csv` method to fetch and parse the remote dataset from a GitHub gist, then computes the statistics from the parsed array and its `columns` property. It also comments out an alternative approach using the Fetch API with `async`/`await` and `d3.csvParse`, illustrating two ways to load tabular data. The result is rendered as plain text inside a large `<pre>` element.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed