Skip to main content
Public

Share visualization

Loading preview…

Interactive Colour Legend

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

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 & exportHTML, source ZIP

Interactive Colour Legend

0 stars0Public
CChris Briggs
Last edited Nov 18, 2021
Created on Nov 18, 2021

This interactive scatter plot displays the Iris dataset, mapping petal length against sepal width with species indicated by color. The React-based visualization uses D3.js scales (scaleLinear, scaleOrdinal) and SVG rendering. Users can hover over the color legend to highlight points from a specific species while dimming others, achieved through React state management (useState) that toggles opacity values on the marks and legend items. The data loads asynchronously via D3's csv parser.

AI-generated description

A Scatter Plot based on Iris Data

Comments

Sign in to join the discussion.

MIT Licensed