Fork of Loading and Parsing CSV Data
✓ Published0🌍 Public
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 descriptionA program that loads and parses some CSV data: CSS Named Colors.
See also:
MIT Licensed