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)

d1a6774a7edb4dae96ca38287c9f910a

Fork of Loading and Parsing CSV Data

0 stars0🌍 Public
Ssrividyap03
Last edited May 8, 2023
Created on May 8, 2023

This example visualizes the size and structure of a CSV dataset containing CSS named colors by displaying its file size, row count, and column count as large text. It loads the data from a remote GitHub Gist using d3.csv, which returns a parsed array, then computes the kilobytes from the formatted CSV string using d3.csvFormat. The code also includes commented-out alternatives using fetch, async/await, and d3.csvParse, demonstrating different approaches to asynchronous data loading in D3 v5 within a React-based project.

AI-generated description