Skip to main content
100%

Interactive Color Legend

✓ Published0🌍 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
MIT Licensed

Similar vizzes