Skip to main content
100%

fetch csv etc

✓ Published0🌍 Public
Ppianojoel
Last edited Oct 7, 2021
Created on Oct 7, 2021
Forked from React Starter

This example demonstrates how to fetch a remote CSV file using D3’s `d3.csv` method and display basic metadata about the dataset in plain text. It renders the file size in kilobytes, the number of columns, and the number of rows into a `<pre>` element. The code loads a CSS color list from a GitHub gist, and uses `d3.csvFormat` to calculate the raw data’s size. React is imported but unused, while D3 v7 handles the asynchronous data loading and parsing.

AI-generated description

React Starter code.

MIT Licensed

Similar vizzes