Skip to main content
100%

Interactive Color Legend

✓ Published1🌍 Public
RRudy Shayganfar
Last edited Oct 15, 2020
Created on Oct 14, 2020

This interactive scatter plot visualizes the Iris Dataset, plotting petal length against sepal width. The color legend, implemented using d3.scaleOrdinal, indicates species. When hovering over a legend item, a React state variable filters the data to highlight only the selected species, dimming all other points through an opacity change. The chart is rendered as an SVG using React, with axes built from d3.scaleLinear.

AI-generated description

A scatter plot of The Iris Dataset.

This plot was made by forking Scatter Plot with Color Legend and modifying based on the CS573 Week 7 video "Interactive Color Legend".

MIT Licensed

Similar vizzes