Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Parsing csv Data with d3

Public visualization

Viewing a saved revision (read-only)

a481376adae747a88d030e047105d015

Parsing csv Data with d3

0 stars0🌍 Public
Aadewole-top
Last edited Apr 5, 2021
Created on Apr 4, 2021

This example demonstrates how to load and summarize a CSV dataset using D3. It fetches a color-name dataset from a GitHub gist and displays the file size in kilobytes, the number of rows, and the column count. The code uses `d3.csv` to asynchronously parse the remote file, then `d3.csvFormat` to calculate the raw data size. Results are shown as plain text in a large `<pre>` element, with the page styled minimally via inline CSS and D3 v6 loaded from a CDN.

AI-generated description

A programme that load csv data <br/> A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.