Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Loading and Parsing CSV Data

Public visualization

Viewing a saved revision (read-only)

95903c6c82524d03b91836a1b37b5582

Fork of Loading and Parsing CSV Data

0 stars0🌍 Public
Ddanielscheeper@gmail.com
Last edited Jan 12, 2024
Created on Dec 21, 2023

This example demonstrates how to load and parse CSV data using D3’s `d3.csv` method, fetching a dataset of CSS named colors from a GitHub gist. It displays the file size in kilobytes, the row count, and the column count in a large `<pre>` element. The code relies on the Fetch API and async functions to retrieve the text, while D3 handles parsing and formatting the data, with all results rendered directly into the DOM.

AI-generated description