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

1
RRudy Shayganfar
Last edited Oct 15, 2020
Created on Oct 14, 2020

This interactive scatter plot visualizes the Iris Dataset, plotting petal length against sepal width. The color legend, implemented using d3.scaleOrdinal, indicates species. When hovering over a legend item, a React state variable filters the data to highlight only the selected species, dimming all other points through an opacity change. The chart is rendered as an SVG using React, with axes built from d3.scaleLinear.

AI-generated description

A scatter plot of The Iris Dataset.

This plot was made by forking Scatter Plot with Color Legend and modifying based on the CS573 Week 7 video "Interactive Color Legend".

Comments

Sign in to join the discussion.

MIT Licensed