Skip to main content
100%

Fork of Loading and Parsing CSV Data

✓ Published0🌍 Public
EEbdulmomen Ahmed
Last edited Mar 19, 2022
Created on Mar 17, 2022

This example demonstrates how to load and parse CSV data, displaying the resulting dataset's size in kilobytes, row count, and column count. The visualization uses D3 v5 to fetch the CSS Named Colors dataset from a GitHub Gist and parse it with the `d3.csv` and `d3.csvParse` APIs. The code also includes commented-out alternatives using `fetch` with promises and `async`/`await`, illustrating different asynchronous approaches. The output is rendered as text within an HTML `<pre>` element, with the data summary displayed in a large font.

AI-generated description
MIT Licensed

Similar vizzes