Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Handling Data for Viz

Public visualization

Handling Data for Viz

0 stars0🌍 Public
Ggmishra4
Last edited Dec 1, 2021
Created on Nov 29, 2021
Forked from HTML Starter

This example demonstrates the initial steps of loading and parsing a CSV file for data visualization. The code uses the `fetch` API to request a remote file containing CSS named colors from a GitHub gist, and then employs `d3.csvParse` to convert the response text into a tabular data structure. The parsed data’s columns are logged to the console, and the implementation includes commented-out code showing both a promise-based "Pyramid of Doom" approach and an `async`/`await` alternative. The visualization itself is not yet rendered.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed