Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading and Parsing CSV Data

Public visualization

Loading and Parsing CSV Data

0 stars0🌍 Public
곽곽옥석
Last edited Jul 23, 2021
Created on Jul 23, 2021
Forked from Hello HTML

This example demonstrates loading a CSV file and displaying its basic metadata, including file size, row count, and column count, in a large text block. The program uses D3.js’s `d3.csv` function to fetch and parse the remote dataset, then accesses `data.length` and `data.columns.length` to extract the statistics. The result is rendered via a React-managed `pre` element, with the message composed using string concatenation and `Math.round` for the kilobyte calculation. The source is a CSS named colors CSV hosted on GitHub Gist.

AI-generated description

A program that loads and parses some CSV data.

Comments

Sign in to join the discussion.

MIT Licensed