Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading and Parsing CSV Data

Public visualization

Loading and Parsing CSV Data

0 stars0🌍 Public
LLento Manickathan
Last edited Dec 28, 2021
Created on Dec 28, 2021
Forked from HTML Starter

This example demonstrates the process of loading and parsing a CSV file with D3.js, displaying a summary of the dataset in a large red text block. The visualization shows the number of rows, columns, and file size in kilobytes of the CSS named colors dataset fetched from a GitHub gist. The code uses d3.csv() to asynchronously load and parse the data, then d3.csvFormat() to calculate the file size. An alternative commented-out approach using fetch() and d3.csvParse() is also provided.

AI-generated description

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

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed