Skip to main content
Public

Share visualization

Loading preview…

menus

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

menus

0
Ssucotton9
Last edited Jul 20, 2021
Created on Jul 20, 2021
Forked from Smiley face pt. 2

This example demonstrates a simple pet-selection menu built with React and D3 v7. It shows a labeled dropdown that lets users choose from a list of six pets, with the selected value displayed in the console. The `Dropdown` component manages the `<select>` element, while React’s `useState` hook tracks the current choice. The code uses D3’s `arc` function, though it is not applied in the visible interface. The options are defined as static objects with distinct values and labels.

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