Skip to main content
100%

Interactive Color Legend

✓ Published0🌍 Public
PPeter Krevenets
Last edited Mar 26, 2021
Created on Mar 25, 2021

This interactive color legend visualizes the Iris dataset as a scatter plot, where hovering over a species name in the legend highlights only the corresponding data points while dimming the rest. The chart uses React with D3 scales to map sepal and petal measurements to x and y positions, while a D3 ordinal color scale assigns distinct colors to each species. The ColorLegend component triggers hover state updates that filter the rendered marks, and native SVG circle titles provide simple tooltips on data points.

AI-generated description

A scatter plot of Iris Data with interactive color legend.

MIT Licensed

Similar vizzes