Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading and Parsing CSV data

Public visualization

Viewing a saved revision (read-only)

1ab3f2e819734d38b349b789f366b9ee

Loading and Parsing CSV data

0 stars0🌍 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