Skip to main content
100%

Loading and Parsing CSV data

✓ Published0🌍 Public
Hhiteshk-itis
Last edited Apr 16, 2023
Created on Apr 16, 2023
Forked from HTML Starter

This example demonstrates how to load and parse CSV data from a remote URL using d3.csv, then displays summary statistics about the dataset in a large HTML `<pre>` element. The code counts the number of rows and columns in the parsed data, calculates the approximate file size of the CSV-formatted content, and renders these three metrics as plain text. The visualization uses D3.js v7, specifically the d3.csv and d3.csvFormat APIs, with the data sourced from a gist containing CSS named colors.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes