Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Loading and Parsing CSV Data g

Public visualization

Fork of Loading and Parsing CSV Data g

0 stars0🌍 Public
Ppytorchgirl
Last edited Dec 4, 2021
Created on Dec 4, 2021

This example demonstrates how to load and parse CSV data using D3 v5, displaying a summary of the CSS Named Colors dataset. The visualization shows three metrics: the file size in kilobytes, the number of rows, and the number of columns, presented in a large text format. It uses the `d3.csv` method with a Promise-based `.then()` callback to fetch the remote CSV file, then leverages `d3.csvFormat` to calculate the data’s byte length. The output is rendered into a `<pre>` element via standard DOM manipulation.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed