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)

8e9b35506b66487c8444f3f5b5296896

Fork of Loading and Parsing CSV Data

0 stars0🌍 Public
JJadeJOy
Last edited Mar 25, 2021
Created on Mar 25, 2021

This example loads a CSV file containing CSS named colors and displays a summary of the dataset, including its size in kilobytes, row count, and column count. The data is fetched from a GitHub-hosted CSV file using the `d3.csv` function, which parses the remote data and returns a promise. The parsed data’s `columns` property provides the column count, while `d3.csvFormat` calculates the text length. The visual output is a large, simple text message rendered in an HTML `pre` element, with the React framework noted in the metadata despite the code using plain JavaScript with d3.v5.

AI-generated description