Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Interactive Color Legend

Public visualization

Interactive Color Legend

0 stars0🌍 Public
TThe-World-Muda
Last edited Oct 6, 2020
Created on Oct 6, 2020

An interactive scatterplot of the Iris dataset lets users explore relationships between sepal and petal measurements, with colored dots representing species. A clickable color legend on the right highlights points of a selected species while dimming the others, using React state to track the hovered value. Built with React and D3 v5, the plot renders as SVG and uses scales from `d3.scaleLinear` for axes and `d3.scaleOrdinal` for categorical colors. Dropdown menus allow switching which measurements appear on the x- and y-axes.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed