Skip to main content
100%

Loading Data

✓ Published4🌍 Public
LLauren
Last edited Jan 20, 2023
Created on Jan 20, 2023
Forked from Mouse Follower

This example demonstrates asynchronous data loading by fetching a CSV file of Iris flower measurements and displaying the parsed data as a text preview in the browser. The page initially shows “LOADING” until `fetch` retrieves the file, then `csvParse` converts the raw text into an array of objects. Numeric fields are explicitly converted from strings to numbers with the unary plus operator, and the resulting dataset is rendered inside a `pre` element. The visualization uses a minimal state management pattern with a `setState` function to trigger re-rendering once the data arrives.

AI-generated description

A circle that follows the mouse using unidirectional data flow.

MIT Licensed

Similar vizzes