Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

loading and parsing data

Public visualization

Viewing a saved revision (read-only)

6b78b7467e3849afa30c2816865c7cc4

loading and parsing data

0 stars2🌍 Public
DDipak654
Last edited Dec 3, 2021
Created on Dec 3, 2021
Forked from HTML Starter

This example demonstrates the basic step of loading and parsing a remote CSV file with D3. It fetches text from a GitHub-hosted dataset of CSS named colors, uses `d3.csvParse` to convert the raw text into a structured data table, and then displays summary statistics. The visualization is purely textual, presenting the file size in kilobytes, the number of data rows, and the number of columns in a large `<pre>` element. The code relies on the modern `fetch` API and `async`/`await` syntax to retrieve the data.

AI-generated description

loading and parsing csv data