Skip to main content
100%

Interactive Color Legend

✓ Published0🌍 Public
SSong Tao Chen
Last edited Jan 10, 2022
Created on Jan 10, 2022

This interactive scatter plot visualizes the Iris dataset, displaying sepal length against sepal width with points colored by species. Hovering over the color legend highlights the corresponding species by increasing the opacity of its data points while fading others. The visualization uses React with D3 v7 scales and SVG rendering, including custom AxisBottom, AxisLeft, Marks, and ColorLegend components. The color legend employs mouse events to trigger the hover state, with the ordinal color scale mapping three distinct species to individual colors.

AI-generated description
MIT Licensed

Similar vizzes