Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Mouse Follower

Public visualization

Viewing a saved revision (read-only)

7a68e87b88eb4a9eac1e8a010c97985f

Fork of Mouse Follower

0 stars0🌍 Public
NNatália
Last edited Sep 16, 2023
Created on Sep 16, 2023
Forked from Mouse Follower

This fork demonstrates a unidirectional data flow pattern that updates an SVG circle to follow the mouse cursor. The visualization tracks pointer position and renders a simple responsive point on the canvas. Built with React and D3 (v7), the implementation uses `select` to target DOM nodes and `csvParse` to load and parse the Iris flower dataset from `data.csv`. The data loading follows a state machine pattern, transitioning from `undefined` to `'LOADING'` to the final parsed array, with numeric conversions applied to the measurement columns.

AI-generated description

A circle that follows the mouse using unidirectional data flow. See also Mouse Follower with React.