🌍 Public
Viewing a saved revision (read-only)
f79a3b2925ce4cd9a83a873dfe4d5e06
Menu
This visualization demonstrates a simple pet-selection menu built with D3 v7. It uses a drop-down select element to choose from six animal options, with the current value managed through a state object and `setState` function. The menu implementation uses D3's `selectAll` and `join` APIs to efficiently update the DOM, while the `viz.js` module initializes the default selection to 'hamster' and renders the interface.
AI-generated description