Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Parsing CSV Data with D3

Public visualization

Viewing a saved revision (read-only)

a815b6fa2d0e424082df816d7200632e

Parsing CSV Data with D3

0 stars0🌍 Public
MMareno Demmers
Last edited Oct 10, 2024
Created on Oct 9, 2024
Forked from HTML Starter

This example demonstrates how to load and parse CSV data using D3’s `d3.csv` method, displaying the file size, row count, and column count as large text in the browser. The code fetches a remote CSV file from a GitHub gist, parses it with `d3.csv`, and uses `d3.csvFormat` to measure the formatted data’s size in kilobytes. The results are rendered into a `<pre>` element via `document.getElementById`, with the visualization relying entirely on D3’s data-handling APIs rather than any drawing or charting functions.

AI-generated description