Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading and parsing CSV Data

Public visualization

Viewing a saved revision (read-only)

1c572f78361c40b481e4a20068bc7e7d

Loading and parsing CSV Data

0 stars1🌍 Public
Ssmsk2980
Last edited Apr 17, 2021
Created on Apr 11, 2021
Forked from HTML Starter

This example demonstrates how to load and parse CSV data using D3.js, displaying the file size, row count, and column count of a dataset containing CSS named colors. The code uses `d3.csv` to fetch the remote CSV file from a GitHub gist URL, then computes the formatted data size with `d3.csvFormat`, and reports the number of rows and columns from the parsed result. The output is rendered as large text inside a `<pre>` element. An alternative commented approach using `fetch` and `d3.csvParse` is also included, showing two distinct methods for CSV handling in D3 v6.

AI-generated description

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

See also React Starter.