Skip to main content
100%

Data fetch

✓ Published0🌍 Public
TtheV1rTual
Last edited Oct 28, 2021
Created on Oct 28, 2021
Forked from HTML Starter

This example fetches a CSV file containing CSS named colors and displays a short summary of its size and structure in large text. It reports the number of rows, the number of columns, and the file’s size in kilobytes after formatting the data with `d3.csvFormat`. The visualization uses `fetch` and `response.text()` to retrieve the raw data, then `d3.csv` to parse it into an array of objects. The final message is written into a `<pre>` element using the DOM API, with styles applied via CSS.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes