Skip to main content
100%

Interactive Color Legend

✓ Published0🌍 Public
BBen Brophy
Last edited Jan 4, 2022
Created on Jan 3, 2022

A scatterplot of the Iris dataset displays petal length against sepal width, with each species colored distinctly. Hovering over a color legend item highlights that species’ points at full opacity while fading all others. The code uses React for component structure and SVG for rendering, with D3’s `scaleLinear`, `scaleOrdinal`, and `extent` for scales and axes. Data loads via D3’s `csv` from a GitHub gist.

AI-generated description

A scatterplot of the Iris Dataset

MIT Licensed

Similar vizzes