Skip to main content
100%

Loading and Parsing CSV data

✓ Published0🌍 Public
SSiddhant Bhardwaj
Last edited Oct 20, 2021
Created on Oct 20, 2021

This example demonstrates how to load and parse CSV data in the browser using the Fetch API and D3 v5. It fetches a remote dataset of CSS named colors, parses the text into tabular data with `d3.csvParse`, and displays a summary message showing the file size, row count, and column count. The interface uses a plain HTML `<pre>` element for output, with the logic wrapped in an async function and commented-out code illustrating the alternative promise-based approach.

AI-generated description
MIT Licensed

Similar vizzes