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)

5fce9a5180404315b9f45f8d0aa3eb80

Loading and Parsing CSV Data

0 stars0🌍 Public
TTanupat B.
Last edited Mar 18, 2022
Created on Mar 17, 2022
Forked from HTML Starter

This example demonstrates the basic workflow of loading and parsing CSV data with D3.js, displaying the dataset’s dimensions as text. It fetches a remote CSV file containing CSS named colors using the Fetch API, then parses the raw text with `d3.csvParse`. The code counts the number of rows and columns from the parsed array and reports the file size in kilobytes, rendering the summary inside a large `<pre>` element. Only the parsed data’s structure is shown, not the actual color values.

AI-generated description

load and parse csv data