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)

b32945f050554e38bfc974620255e92c

Loading and Parsing CSV Data

0 stars0🌍 Public
HHunDeTroie
Last edited Dec 16, 2021
Created on Dec 15, 2021

This example demonstrates the process of loading and parsing CSV data by fetching a file of CSS named colors and displaying summary statistics about it. It shows the data’s size in kilobytes, the number of rows, and the number of columns as large text on the page. The code uses the `fetch` API within an `async` function to retrieve the raw text, then relies on `d3.csv` and `d3.csvFormat` to parse and measure the data, highlighting the integration of D3 v5 with modern JavaScript.

AI-generated description