Skip to main content
100%

Fork of Loading and Parsing CSV Data

✓ Published0🌍 Public
PPin-Yu-Li
Last edited Sep 5, 2024
Created on Sep 5, 2024

This example demonstrates how to load and parse CSV data, displaying the file size in kilobytes, the number of rows, and the number of columns. Using the D3.js v5 function `d3.csv`, it fetches the Iris dataset from a GitHub gist and processes the resulting array. 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.” The output renders as large text inside an HTML `<pre>` element.

AI-generated description
MIT Licensed

Similar vizzes