Skip to main content
100%

Fetching data

✓ Published0🌍 Public
SShanoy
Last edited Mar 13, 2022
Created on Mar 12, 2022
Forked from HTML Starter

This example displays basic metadata about a fetched CSV file, showing its size in kilobytes, row count, and column count in large text. It loads a named CSS colors dataset from a GitHub gist using the `d3.csv` method with a Promise-based `.then()` callback, then counts rows via `txt.length` and columns through `txt.columns.length`. The text size is computed from `d3.csvFormat(txt).length`. The page uses D3 v7 and renders the resulting information inside a `<pre>` element.

AI-generated description

Web program to fetch data

MIT Licensed

Similar vizzes