Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading and Parsing CSV Data

Public visualization

Viewing a saved revision (read-only)

b10e4c59097c4f189542a568060fd200

Loading and Parsing CSV Data

0 stars0🌍 Public
JJayesh Yadav
Last edited Nov 15, 2021
Created on Nov 14, 2021

This example demonstrates how to load and parse CSV data using D3 v7, displaying a summary of the dataset’s size and structure. It fetches a CSV file containing CSS named colors from a GitHub gist, then uses `d3.csv` to parse the remote data asynchronously. The code calculates the total file size in kilobytes, counts the number of rows and columns, and presents these results as large text in the browser. The implementation relies on Promises and the `d3.csv` method, with no additional visualization components.

AI-generated description