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)

d208789e9d774f139d7bd719bde1b0d0

Fork of Loading and Parsing CSV Data

0 stars0🌍 Public
DDeborah Ong
Last edited Apr 3, 2021
Created on Apr 3, 2021

This example displays metadata about a CSV file containing CSS named colors, showing its size in kilobytes, row count, and column count in large text. The code uses D3 v5’s `d3.csv` function to fetch and parse the remote CSV data asynchronously, then formats the result with `d3.csvFormat` to compute the byte size. It also demonstrates alternative approaches with `fetch` and `d3.csvParse` in commented-out sections, highlighting different methods for loading tabular data.

AI-generated description