Skip to main content
Public

Share visualization

Loading preview…

Interactive 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

Interactive Color Legend

0
TTatyana Milanova
Last edited Oct 6, 2023
Created on Oct 6, 2023

This interactive scatter plot visualizes the Iris dataset, mapping petal length and sepal width across three species. Users can hover over the ordinal color legend to highlight points of a selected species while fading others, using React state to manage hover interactions. The visualization is rendered with SVG elements, with axes and scales built using d3.scaleLinear and d3.scaleOrdinal, while d3.csv loads the dataset.

AI-generated description

A scatter plot of The Iris Dataset.

Comments

Sign in to join the discussion.

MIT Licensed