Skip to main content
100%

Load and Parse Csv File

✓ Published0🌍 Public
Ttenghaoman
Last edited Jul 22, 2020
Created on Jul 21, 2020
Forked from Load Csv File

This example demonstrates loading and parsing a CSV file with D3, displaying the dataset’s size in kilobytes, row count, and column count as plain text. It fetches a remote CSV from a GitHub gist using `d3.csv`, which parses the file into an array of objects. The formatted data is measured with `d3.csvFormat`, and the computed metrics are injected into an HTML `<pre>` element via `textContent`. The page uses D3 v5 with a minimal, unstyled body layout.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes