Skip to main content
100%

Interactive Color Legend

✓ Published0🌍 Public
Mmuhammadshumas
Last edited Dec 29, 2021
Created on Dec 29, 2021

This interactive scatter plot visualizes the Iris dataset, showing petal length against sepal width for three flower species. The color legend on the right filters and highlights points by species when hovered, while non-matching species fade to 20% opacity. Built with React and D3 v5, the visualization uses `scaleLinear` for axes, `scaleOrdinal` for categorical colors, and custom React components for marks, axes, and the legend. Data is loaded asynchronously via `d3.csv` from a GitHub Gist, and all elements are rendered as SVG.

AI-generated description

A scatter plot of The Iris Dataset.

MIT Licensed

Similar vizzes