Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading and parsing CSV data wih D3

Public visualization

Viewing a saved revision (read-only)

20f4c117bad04a5e852056c22ee08746

Loading and parsing CSV data wih D3

0 stars0🌍 Public
AAoibhinnRed
Last edited Oct 1, 2021
Created on Oct 1, 2021

This example demonstrates how to load and parse CSV data using D3 v7. It displays the row count, column count, and file size in kilobytes as large text on the page. The code uses `d3.csv()` to fetch and parse a CSV file from a GitHub gist, then processes the resulting data array and columns. It also includes commented-out alternatives using `fetch()` with `async/await` and `d3.csvParse()` to illustrate older parsing approaches.

AI-generated description

Loading and parsing CSV data