Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading data with D3

Public visualization

Viewing a saved revision (read-only)

724884d6f5f64d8196ca81b9f4f98301

Loading data with D3

0 stars0🌍 Public
Rrvdv
Last edited Dec 21, 2021
Created on Dec 21, 2021

This example demonstrates how to load and inspect a remote CSV dataset using D3. It fetches a tidy version of the Anscombe’s quartet from a GitHub gist and displays three summary metrics in large text: the file size in kilobytes, the number of rows, and the number of columns. The code uses `d3.csv` to asynchronously parse the data, `d3.csvFormat` to calculate the raw size, and the `data.length` and `data.columns.length` properties to report the dataset’s dimensions.

AI-generated description