Skip to main content
100%

Fork of Loading and Parsing CSV Data

✓ Published0🌍 Public
EEverton Rocha
Last edited Mar 5, 2021
Created on Mar 5, 2021

This example displays basic statistics about a CSV dataset containing CSS named colors, showing the file size in kilobytes, the number of rows, and the number of columns in large text. It loads the data from a GitHub gist using d3.csv, which returns a promise, then formats the computed metrics with d3.csvFormat and string concatenation. The code also includes commented-out alternatives using the Fetch API with async/await and d3.csvParse, as well as a nested promise “pyramid of doom” pattern for comparison. The visualization itself is minimal, relying solely on a styled pre element to render the text output.

AI-generated description
MIT Licensed

Similar vizzes