Skip to main content
100%

Interactive Color Legend

✓ Published0🌍 Public
AAnthony Ynami
Last edited Feb 23, 2021
Created on Feb 22, 2021

This interactive scatter plot of the Iris dataset uses React and D3 v6 to visualize sepal length and width, colored by species. Hovering over a color legend entry highlights matching data points while fading others to 20% opacity, using React state to track the hovered value. The visualization employs d3.scaleLinear for axes, d3.scaleOrdinal for colors, and d3.csv for loading data from a gist. SVG rendering creates the plot, axes, and an interactive color legend that filters marks dynamically.

AI-generated description

A Scatter Plot of the Iris Dataset

MIT Licensed

Similar vizzes