Interactive Color Legend
✓ Published0🌍 Public
This example shows an interactive scatter plot of the Iris Dataset, where hovering over a species name in the color legend dims all points except those belonging to that species. The visualization uses React to manage hover state and render SVG elements, while d3.scaleOrdinal, d3.scaleLinear, and d3.extent handle color and positional scales. Marks are drawn as circles, and the legend triggers mouse events to filter the data for highlighting.
AI-generated descriptionA scatter plot of The Iris Dataset.
MIT Licensed