Skip to main content
Public

Share visualization

Loading preview…

HW1 : Interactive Polished Scatter Plot with Menus and Colors and Color Legend

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

HW1 : Interactive Polished Scatter Plot with Menus and Colors and Color Legend

0

This interactive scatter plot visualizes the Iris dataset, allowing users to select which flower measurements to compare on the X and Y axes via dropdown menus. The plot displays all 150 data points, colored by species, with a legend that highlights a selected species while fading the others. Built with React and D3 v7, the visualization uses D3’s `scaleLinear` and `scaleOrdinal` to map data to coordinates and colors, and renders the chart as SVG.

AI-generated description

A program that loads in some data using D3 utilities, and uses REACT state to keep track of the data.

Comments

Sign in to join the discussion.

MIT Licensed