Skip to main content
100%

Menu_NH_2

✓ Published0🌍 Public
NNavak94
Last edited Mar 21, 2023
Created on Mar 21, 2023
Forked from Mouse Follower

This example shows a dropdown menu with six pet options—dog, cat, hamster, parrot, spider, and goldfish—where changing the selection updates the application state, though no visible output reflects the current choice. The visualization is built with D3 v7, using a unidirectional data flow where a `viz` function renders the menu and a `setState` callback updates the state and triggers re-rendering. The `menu` module uses D3’s `.join()` to create the `select` and `option` elements, binding the change event to `onChange`, while the `index.js` orchestrates the state management and rendering cycle.

AI-generated description

A circle that follows the mouse using unidirectional data flow.

MIT Licensed

Similar vizzes