Skip to main content
Public

Share visualization

Loading preview…

Loading and Parsing CSV Data

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Loading and Parsing CSV Data

0
SshanLU999
Last edited May 26, 2021
Created on May 26, 2021
Forked from HTML Starter

This example shows a minimal web page that fetches a CSV file containing CSS named colors and logs its raw text to the browser console. The code uses the native `fetch` API to request the CSV from a GitHub gist URL, then chains a `response.text()` promise to parse the response body as a string. The parsed data is displayed solely through `console.log`, with no further processing or visualization on the page. Styling is applied via inline CSS, setting a large font size for the otherwise empty body.

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