Skip to main content
100%

Fork of Loading and Parsing CSV Data

✓ Published0🌍 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
MIT Licensed

Similar vizzes