Skip to main content
100%

Loading Csv files

✓ Published0🌍 Public
MMark Mburu
Last edited May 2, 2021
Created on May 2, 2021
Forked from HTML Starter

This example demonstrates the basic mechanics of loading and parsing a CSV file using D3. It shows a count of the file's size in kilobytes, the number of rows, and the number of columns displayed prominently on the page. The code uses `d3.csv` to fetch data from a GitHub gist containing CSS named colors, then calculates the formatted string length with `d3.csvFormat`. It also includes a commented-out alternative approach using the Fetch API with `async`/`await` and `d3.csvParse`.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes