Skip to main content
100%

Fork of Loading and Parsing CSV Data

✓ Published0🌍 Public
AAlex Gomes
Last edited Mar 1, 2022
Created on Mar 1, 2022

This example demonstrates loading and parsing CSV data by fetching a dataset of CSS named colors and displaying basic statistics about it. The code uses the Fetch API with async/await to retrieve the data, then parses it with d3.csv, which returns a promise. It computes the file size in kilobytes, row count, and column count from the parsed data, displaying these values in a large pre-formatted text element. The visualization also includes commented-out code showing an alternative approach using d3.csvParse on raw text.

AI-generated description
MIT Licensed

Similar vizzes