Skip to main content
100%

Interactive Color Legend

✓ Published0🌍 Public
Qqtrfx
Last edited Jun 18, 2023
Created on Jun 18, 2023

This interactive scatter plot visualizes the Iris Dataset, plotting petal length against sepal width and using color to distinguish species. The visualization includes a color legend that responds to hover events, dimming all data points except those matching the hovered species. Built with React and D3 v5, it uses `scaleLinear` for axes, `scaleOrdinal` for the categorical color mapping, and SVG elements rendered declaratively through React components. The code implements hover interactions by tracking state and applying opacity transitions via the `ColorLegend` component.

AI-generated description

A scatter plot of The Iris Dataset.

MIT Licensed

Similar vizzes