Skip to main content
100%

Loading and Parsing CSV data

✓ Published0🌍 Public
Ssz3g12
Last edited Mar 10, 2021
Created on Mar 10, 2021

This example demonstrates how to load and parse CSV data in a web page, displaying summary statistics about a dataset of CSS named colors. The visualization shows the file size in kilobytes, the number of rows, and the number of columns in plain text. It uses the D3.js library (v6) with the `d3.csv` method for asynchronous data fetching and parsing. The code also includes commented-out alternatives using the Fetch API, `async/await`, and `d3.csvParse` to illustrate different approaches to the same task. The data originates from a gist hosted by Curran Kelleher.

AI-generated description
MIT Licensed

Similar vizzes