Skip to main content
100%

Loading and parcing CSV Data

✓ Published0🌍 Public
Ssono-mama
Last edited Apr 15, 2021
Created on Apr 14, 2021
Forked from HTML Starter

This example demonstrates loading and parsing CSV data, displaying the row count, column count, and approximate file size in a large `<pre>` element. It fetches a remote CSV file containing CSS named colors using the Fetch API, then parses the text with `d3.csvParse`. The parsed dataset’s `length` and `columns` properties drive the summary message, while `text.length` calculates the kilobyte size. The code uses D3 v6 and async/await syntax inside a `fetchText` helper to handle the network request.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes