Skip to main content
100%

Loading and parsing CSV data PART - 1

✓ Published1🌍 Public
Ggoyalshivam204
Last edited Jun 19, 2023
Created on Jun 18, 2023
Forked from HTML Starter

This example demonstrates how to load and parse CSV data from a remote URL, displaying the file size, row count, and column count as text on the page. It uses the Fetch API with async/await syntax alongside D3 v5’s `d3.csv()` method to retrieve and parse the data from a GitHub gist containing CSS named colors. The code shows two commented-out alternatives—manual text fetching with `d3.csvParse()`—and the active approach directly calling `d3.csv()`, then formats the result with `d3.csvFormat()` to compute its size.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes