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)

bf4778e252064b71b64353a04bde7ee8

Fork of Loading and Parsing CSV Data

0 stars0🌍 Public
Ssultanmirzapydev
Last edited Aug 20, 2021
Created on Aug 20, 2021

This example demonstrates how to load and parse CSV data in a web application, displaying a summary of the dataset’s size in kilobytes, row count, and column count. The code uses the D3.js library (v5) to fetch a CSV file containing CSS named colors from a GitHub gist and then parse it with `d3.csv`, while leveraging the Promise-based `.then()` method for asynchronous handling. The resulting message is rendered inside an HTML `<pre>` element. The implementation also includes commented-out alternatives using `fetch`, `async`/`await`, and `d3.csvParse`.

AI-generated description