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
PPedro Henrique Vanali
Last edited Jun 15, 2023
Created on Jun 15, 2023

This example demonstrates the size and structure of a CSV dataset containing CSS named colors. The visualization presents three key statistics—file size in kilobytes, row count, and column count—as large text rendered inside an HTML `<pre>` element. The code uses D3 v5’s `d3.csv` promise-based loading API to fetch the remote CSV file and parse it, then `d3.csvFormat` and `data.columns` to compute the metrics. It highlights the simplicity of D3’s built-in CSV handling compared to alternative fetch and async/await approaches included as commented-out code.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed