Skip to main content
100%

Loading and parsing CSV data wih D3

✓ Published0🌍 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

MIT Licensed

Similar vizzes