Skip to main content
100%

Interractive Color Legend

✓ Published0🌍 Public
Mmikekslv
Last edited Mar 23, 2022
Created on Mar 23, 2022

This interactive scatterplot displays the Iris flower dataset, plotting petal length against sepal width and coloring each point by species. A custom SVG color legend allows hovering over species names to highlight matching points while dimming others through opacity changes. Built with React and D3 v5, the visualization uses `scaleOrdinal` for color mapping, `scaleLinear` for axes, and a `ColorLegend` component with `onMouseEnter` and `onMouseOut` event handlers. Data is loaded asynchronously via `d3.csv`, with points rendered as SVG circles.

AI-generated description

aerg

MIT Licensed

Similar vizzes