Skip to main content
100%

Loading and parsing CSV

✓ Published0🌍 Public
Nnourfahmy2003
Last edited Jul 27, 2022
Created on Jul 27, 2022
Forked from HTML Starter

This example demonstrates how to load and parse a CSV file using D3.js, displaying the resulting dataset’s size in kilobytes, row count, and column count as large text on a plain HTML page. The code fetches a remote CSV file from a GitHub gist via `d3.csv`, then formats the parsed data with `d3.csvFormat` to calculate its size. It also reads the `data.length` and `data.columns.length` properties to report the number of rows and columns, updating the page’s `<pre>` element with `textContent`.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes