Loading and Parsing CSV Data
✓ Published0🌍 Public
This example demonstrates how to load and parse CSV data in a web page. It fetches a dataset of CSS named colors from a GitHub gist and displays the file size in kilobytes, the number of rows, and the number of columns in a large text element. The code uses the `d3.csv` method to fetch and parse the data, and also includes commented-out alternatives using the Fetch API with `async`/`await` and `d3.csvParse`. A third commented example illustrates the nested callback "pyramid of doom" pattern.
AI-generated descriptionA program that loads and parses some CSV data: CSS Named Colors.
See also:
MIT Licensed