Skip to main content
Public

Share visualization

Loading preview…

Polished Scatter Plot with 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

Polished Scatter Plot with Menus

0
LLigoon
Last edited Oct 5, 2020
Created on Oct 5, 2020

This scatter plot visualizes the Iris Dataset, with dropdown menus that let viewers choose which measurement attribute (sepal length, sepal width, petal length, or petal width) appears on each axis. The plot updates dynamically when a menu selection changes, using React state to trigger re-renders. The visualization is rendered as an SVG, with axes built from D3’s `scaleLinear` and `extent` functions, while the React dropdown component handles the user input. Each data point is drawn as a circle with a hover tooltip showing the x-value.

AI-generated description

A scatter plot of The Iris Dataset.

Comments

Sign in to join the discussion.

MIT Licensed