Skip to main content
Public

Share visualization

Loading preview…

React 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

React Color Legend

0
Aarths-glitch
Last edited Jun 8, 2020
Created on Jun 8, 2020
Forked from React Color Legend

An interactive scatter plot of the Iris dataset rendered in SVG using React and D3, comparing petal length against sepal width with points colored by species via `d3.scaleOrdinal`. A custom React color legend component displays the three species, and hovering over a legend entry fades non-matching points to 20% opacity while re-rendering only the selected species highlights on top. Axes are generated with `d3.scaleLinear`, `d3.extent`, and `d3.format`, with data loaded asynchronously through D3’s `csv` parser.

AI-generated description

A scatter plot of The Iris Dataset.

Comments

Sign in to join the discussion.

MIT Licensed